[Mono-bugs] [Bug 81551][Nor] New - [WIN32] ArgumentNullException in SimpleWorkerRequest.MapPath

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon May 7 09:45:27 EDT 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=81551

--- shadow/81551	2007-05-07 09:45:27.000000000 -0400
+++ shadow/81551.tmp.29163	2007-05-07 09:45:27.000000000 -0400
@@ -0,0 +1,93 @@
+Bug#: 81551
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: Windows XP SP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [WIN32] ArgumentNullException in SimpleWorkerRequest.MapPath
+
+When using hosting the ASP.NET runtime in a console app, and you use 
+SimpleWorkerRequest to request a page in the root dir in which you use 
+localized resources then an ArgumentNullException is reported:
+
+System.Web.HttpException:  ---> 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.Compilation.AppResourcesCompiler..ctor (System.String 
+virtualPath) [0x00000] 
+  at System.Web.HttpContext.GetLocalResourceObject (System.String 
+virtualPath, System.String resourceKey, System.Globalization.CultureInfo 
+culture) [0x00000] 
+  at System.Web.HttpContext.GetLocalResourceObject (System.String 
+virtualPath, System.String resourceKey) [0x00000] 
+  at 
+System.Web.Compilation.TemplateControlCompiler.AssignPropertyFromResources 
+(System.CodeDom.CodeMemberMethod method, System.Reflection.MemberInfo mi, 
+System.String attvalue) [0x00000] 
+  at 
+System.Web.Compilation.TemplateControlCompiler.AssignPropertiesFromResource
+s (System.CodeDom.CodeMemberMethod method, System.Type controlType, 
+System.String attvalue) [0x00000] 
+  at 
+System.Web.Compilation.TemplateControlCompiler.AssignPropertiesFromResource
+s (System.Web.UI.ControlBuilder builder, System.String attvalue) [0x00000] 
+  at 
+System.Web.Compilation.TemplateControlCompiler.CreateAssignStatementFromAtt
+ribute (System.Web.UI.ControlBuilder builder, System.String id) [0x00000] 
+  at 
+System.Web.Compilation.TemplateControlCompiler.CreateAssignStatementsFromAt
+tributes (System.Web.UI.ControlBuilder builder) [0x00000] 
+  at System.Web.Compilation.TemplateControlCompiler.CreateControlTree 
+(System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean 
+childrenAsProperties) [0x00000] 
+  at System.Web.Compilation.TemplateControlCompiler.CreateControlTree 
+(System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean 
+childrenAsProperties) [0x00000] 
+  at System.Web.Compilation.TemplateControlCompiler.CreateControlTree 
+(System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean 
+childrenAsProperties) [0x00000] 
+  at System.Web.Compilation.TemplateControlCompiler.CreateMethods () 
+[0x00000] 
+  at System.Web.Compilation.PageCompiler.CreateMethods () [0x00000] 
+  at System.Web.Compilation.BaseCompiler.Init () [0x00000] 
+  at System.Web.Compilation.BaseCompiler.GetCompiledType () [0x00000] 
+  at System.Web.Compilation.AspGenerator.GetCompiledType () [0x00000] 
+  at System.Web.UI.PageParser.CompileIntoType () [0x00000] 
+  at System.Web.UI.TemplateControlParser.GetCompiledInstance () [0x00000] 
+  at System.Web.UI.PageParser.GetCompiledPageInstance (System.String 
+virtualPath, System.String inputFile, System.Web.HttpContext context) 
+[0x00000] 
+  at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext 
+context, System.String requestType, System.String url, System.String path) 
+[0x00000] 
+  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext 
+context) [0x00000] 
+  at System.Web.HttpApplication+<>c__CompilerGenerated5.MoveNext () 
+[0x00000] --- End of inner exception stack trace ---
+
+To reproduce:
+1. extract the attached gezipped tar archive.
+2. compile and run the repro:
+
+$ gmcs /r:System.Web.dll test.cs
+$ mono test.exe
+
+Notes:
+1) this works fine on Linux both fails on Windows.
+2) I cannot get any content served by xsp2 on Windows. The browser just 
+keeps waiting for a response until I shut down xsp2.


More information about the mono-bugs mailing list