[Mono-bugs] [Bug 80544][Nor] New - [2.0] ArgumentNullException in SimpleWorkerRequest.MapPath

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 18 08:47:31 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen at pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=80544

--- shadow/80544	2007-01-18 08:47:30.000000000 -0500
+++ shadow/80544.tmp.24702	2007-01-18 08:47:30.000000000 -0500
@@ -0,0 +1,60 @@
+Bug#: 80544
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [2.0] ArgumentNullException in SimpleWorkerRequest.MapPath
+
+Running the host.cs repro attached to bug #80307 on the 2.0 profile 
+results in an ArgumentNullException:
+
+System.ArgumentNullException: Argument cannot be null.
+Parameter name: path is not rooted in the virtual directory
+  at System.Web.Hosting.SimpleWorkerRequest.MapPath (System.String path) 
+[0x00000] 
+  at System.Web.HttpRequest.MapPath (System.String virtualPath, 
+System.String baseVirtualDir, Boolean allowCrossAppMapping) [0x00000] 
+  at System.Web.HttpRequest.MapPath (System.String virtualPath) [0x00000] 
+  at System.Web.Configuration.WebConfigurationHost.MapPath (System.String 
+virtualPath) [0x00000] 
+  at System.Web.Configuration.WebConfigurationHost.GetStreamName 
+(System.String configPath) [0x00000] 
+  at System.Configuration.Configuration.Init (IConfigSystem system, 
+System.String configPath, System.Configuration.Configuration parent) 
+[0x00000] 
+  at System.Configuration.Configuration..ctor 
+(System.Configuration.InternalConfigurationSystem system, System.String 
+locationSubPath) [0x00000] 
+  at System.Configuration.InternalConfigurationFactory.Create (System.Type 
+typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] 
+  at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration 
+(System.String path, System.String site, System.String locationSubPath, 
+System.String server, System.String userName, System.String password) 
+[0x00000] 
+  at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration 
+(System.String path) [0x00000] 
+  at System.Web.Configuration.WebConfigurationManager.GetSection 
+(System.String sectionName, System.String path) [0x00000] 
+  at System.Web.Configuration.WebConfigurationManager.GetSection 
+(System.String sectionName) [0x00000] 
+  at System.Web.Compilation.AppCodeCompiler.Compile () [0x00000] 
+  at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext 
+context) [0x00000] 
+  at System.Web.HttpApplicationFactory.GetApplication 
+(System.Web.HttpContext context) [0x00000] 
+  at System.Web.HttpRuntime.RealProcessRequest (System.Object o) [0x00000] 
+</pre></code>
+
+Running the same repro works fine on the 1.0 profile (and MS.NET 1.1 / 
+2.0).


More information about the mono-bugs mailing list