Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2002-09-26 22:01:06 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2002-09-26 22:01:06 +0400
commitee5cee70b63cda2fd112841e7df9e08be8415c9d (patch)
tree324501bb554d27dab9d42a3872b150dac523bddc /mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
parent61ed992ec24d27aa08407368f4a8d4d25320b442 (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.cs17
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)