diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2002-09-26 22:01:06 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2002-09-26 22:01:06 +0400 |
commit | ee5cee70b63cda2fd112841e7df9e08be8415c9d (patch) | |
tree | 324501bb554d27dab9d42a3872b150dac523bddc /mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs | |
parent | 61ed992ec24d27aa08407368f4a8d4d25320b442 (diff) |
2002-09-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ApplicationHost.cs:
* SimpleWorkerRequest.cs: workaround for bug #31245.
svn path=/trunk/mcs/; revision=7838
Diffstat (limited to 'mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs')
-rw-r--r-- | mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs b/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs index a8b69276bfe..835f08aeba2 100644 --- a/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs +++ b/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs @@ -35,9 +35,20 @@ namespace System.Web.Hosting _Query = Query; AppDomain current = AppDomain.CurrentDomain; - _AppVirtualPath = current.GetData (".appPath").ToString (); - _AppInstallPath = current.GetData (".hostingVirtualPath").ToString (); - _AppPhysicalPath = CheckAndAddSlash (current.GetData (".hostingInstallDir").ToString ()); + object o = current.GetData (".appPath"); + if (o == null) + throw new HttpException ("Cannot get .appPath"); + _AppVirtualPath = o.ToString (); + + o = current.GetData (".hostingVirtualPath"); + if (o == null) + throw new HttpException ("Cannot get .hostingVirtualPath"); + _AppInstallPath = o.ToString (); + + o = current.GetData (".hostingInstallDir"); + if (o == null) + throw new HttpException ("Cannot get .hostingInstallDir"); + _AppPhysicalPath = CheckAndAddSlash (o.ToString ()); _Output = Output; if (_AppPhysicalPath == null) |