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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=76633 --- shadow/76633 2005-11-04 15:32:07.000000000 -0500 +++ shadow/76633.tmp.3833 2005-11-04 15:32:07.000000000 -0500 @@ -0,0 +1,190 @@ +Bug#: 76633 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: FC3 +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: Sys.Web +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Web.config location element can't contain more than one section + +Description of Problem: + +Putting more than one section in a <location> element causes an error. +That is not the case with .NET and prevents configuring multiple 3rd-party +components for the same location. + +Steps to reproduce the problem: +1. Untar minimal test case which I'll attach (just a Web.config and +Default.aspx) and cd into the directory. + +2. xsp --applications "/:$PWD/" + +3. Point browser at Default.aspx. + +Actual Results: + +Error in browser. Following in terminal where xsp was run: + +System.Configuration.ConfigurationException: Error reading +/home/brettle/tmp/config-bug/Web.config () + +Server stack trace: +in <0x00137> System.Web.Configuration.ConfigurationData:LoadFromFile +(System.String fileName) +in <0x0029c> +System.Web.Configuration.WebDefaultConfig:GetConfigFromFileName +(System.String filepath, System.Web.HttpContext context) +in <0x00041> System.Web.Configuration.WebDefaultConfig:GetConfig +(System.String sectionName, System.Web.HttpContext context) +in <0x00022> System.Web.Configuration.WebDefaultConfig:GetConfig +(System.String sectionName) +in <0x0001a> System.Configuration.ConfigurationSettings:GetConfig +(System.String sectionName) +in <0x0000d> System.Web.HttpContext:GetAppConfig (System.String name) +in <0x00043> System.Web.HttpApplication:InitOnce (Boolean full_init) +in <0x00011> System.Web.HttpApplication:Start (System.Object x) +in <0x00068> +System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest +(System.Web.HttpContext context, System.AsyncCallback cb, System.Object +extraData) +in <0x001ab> System.Web.HttpRuntime:RealProcessRequest (System.Object o) +in <0x00026> System.Web.HttpRuntime:ProcessRequest +(System.Web.HttpWorkerRequest wr) +in <0x0000a> Mono.WebServer.MonoWorkerRequest:ProcessRequest () +in <0x00043> Mono.WebServer.BaseApplicationHost:ProcessRequest +(Mono.WebServer.MonoWorkerRequest mwr) +in <0x0037f> Mono.WebServer.XSPApplicationHost:ProcessRequest (Int32 reqId, +Int64 localEPAddr, Int32 localEPPort, Int64 remoteEPAdds, Int32 +remoteEPPort, System.String verb, System.String path, System.String +queryString, System.String protocol, System.Byte[] inputBuffer, +System.String redirect, IntPtr socket, Mono.WebServer.SslInformations ssl) +in (wrapper remoting-invoke-with-check) +Mono.WebServer.XSPApplicationHost:ProcessRequest +(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations) +in (wrapper xdomain-dispatch) +Mono.WebServer.XSPApplicationHost:ProcessRequest +(object,byte[]&,byte[]&,int,long,int,long,int,string,string,string,string,byte[],string) + +Exception rethrown at [0]: + ---> System.Xml.XmlException: Multiple document element was detected. +Line 5, position 6. +in <0x006df> System.Xml.XmlTextReader:ReadStartTag () +in <0x0014b> System.Xml.XmlTextReader:ReadContent () +in <0x00119> System.Xml.XmlTextReader:Read () +in <0x00061> System.Web.Configuration.ConfigurationData:MoveToNextElement +(System.Xml.XmlTextReader reader) +in <0x00131> System.Web.Configuration.ConfigurationData:ReadConfig +(System.Xml.XmlTextReader reader, Boolean isLocation) +in <0x00029> System.Web.Configuration.ConfigurationData:LoadFromReader +(System.Xml.XmlTextReader reader, System.String fakeFileName, Boolean +isLocation) +in <0x000e9> System.Web.Configuration.Location:LoadFromString +(System.String str) +in <0x002b2> System.Web.Configuration.ConfigurationData:StoreLocation +(System.String name, System.Xml.XmlTextReader reader) +in <0x000ef> System.Web.Configuration.ConfigurationData:ReadConfig +(System.Xml.XmlTextReader reader, Boolean isLocation) +in <0x000ae> System.Web.Configuration.ConfigurationData:LoadFromFile +(System.String fileName)--- End of inner exception stack trace --- + +in (wrapper xdomain-invoke) +Mono.WebServer.XSPApplicationHost:ProcessRequest +(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations) +in (wrapper remoting-invoke-with-check) +Mono.WebServer.XSPApplicationHost:ProcessRequest +(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations) +in <0x00563> Mono.WebServer.XSPWorker:InnerRun (System.Object state) +in <0x00022> Mono.WebServer.XSPWorker:Run (System.Object state) +System.Configuration.ConfigurationException: Error reading +/home/brettle/tmp/config-bug/Web.config () + +Server stack trace: +in <0x00137> System.Web.Configuration.ConfigurationData:LoadFromFile +(System.String fileName) +in <0x0029c> +System.Web.Configuration.WebDefaultConfig:GetConfigFromFileName +(System.String filepath, System.Web.HttpContext context) +in <0x00041> System.Web.Configuration.WebDefaultConfig:GetConfig +(System.String sectionName, System.Web.HttpContext context) +in <0x00022> System.Web.Configuration.WebDefaultConfig:GetConfig +(System.String sectionName) +in <0x0001a> System.Configuration.ConfigurationSettings:GetConfig +(System.String sectionName) +in <0x0000d> System.Web.HttpContext:GetAppConfig (System.String name) +in <0x00043> System.Web.HttpApplication:InitOnce (Boolean full_init) +in <0x00011> System.Web.HttpApplication:Start (System.Object x) +in <0x00068> +System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest +(System.Web.HttpContext context, System.AsyncCallback cb, System.Object +extraData) +in <0x001ab> System.Web.HttpRuntime:RealProcessRequest (System.Object o) +in <0x00026> System.Web.HttpRuntime:ProcessRequest +(System.Web.HttpWorkerRequest wr) +in <0x0000a> Mono.WebServer.MonoWorkerRequest:ProcessRequest () +in <0x00043> Mono.WebServer.BaseApplicationHost:ProcessRequest +(Mono.WebServer.MonoWorkerRequest mwr) +in <0x0037f> Mono.WebServer.XSPApplicationHost:ProcessRequest (Int32 reqId, +Int64 localEPAddr, Int32 localEPPort, Int64 remoteEPAdds, Int32 +remoteEPPort, System.String verb, System.String path, System.String +queryString, System.String protocol, System.Byte[] inputBuffer, +System.String redirect, IntPtr socket, Mono.WebServer.SslInformations ssl) +in (wrapper remoting-invoke-with-check) +Mono.WebServer.XSPApplicationHost:ProcessRequest +(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations) +in (wrapper xdomain-dispatch) +Mono.WebServer.XSPApplicationHost:ProcessRequest +(object,byte[]&,byte[]&,int,long,int,long,int,string,string,string,string,byte[],string) + +Exception rethrown at [0]: + ---> System.Xml.XmlException: Multiple document element was detected. +Line 5, position 6. +in <0x006df> System.Xml.XmlTextReader:ReadStartTag () +in <0x0014b> System.Xml.XmlTextReader:ReadContent () +in <0x00119> System.Xml.XmlTextReader:Read () +in <0x00061> System.Web.Configuration.ConfigurationData:MoveToNextElement +(System.Xml.XmlTextReader reader) +in <0x00131> System.Web.Configuration.ConfigurationData:ReadConfig +(System.Xml.XmlTextReader reader, Boolean isLocation) +in <0x00029> System.Web.Configuration.ConfigurationData:LoadFromReader +(System.Xml.XmlTextReader reader, System.String fakeFileName, Boolean +isLocation) +in <0x000e9> System.Web.Configuration.Location:LoadFromString +(System.String str) +in <0x002b2> System.Web.Configuration.ConfigurationData:StoreLocation +(System.String name, System.Xml.XmlTextReader reader) +in <0x000ef> System.Web.Configuration.ConfigurationData:ReadConfig +(System.Xml.XmlTextReader reader, Boolean isLocation) +in <0x000ae> System.Web.Configuration.ConfigurationData:LoadFromFile +(System.String fileName)--- End of inner exception stack trace --- + +in (wrapper xdomain-invoke) +Mono.WebServer.XSPApplicationHost:ProcessRequest +(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations) +in (wrapper remoting-invoke-with-check) +Mono.WebServer.XSPApplicationHost:ProcessRequest +(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations) +in <0x00563> Mono.WebServer.XSPWorker:InnerRun (System.Object state) +in <0x00022> Mono.WebServer.XSPWorker:Run (System.Object state) + + +Expected Results: + +The following should appear in the browser: + +attr1 = value1 +attr2 = value2 + +How often does this happen? + +Everytime. + +Additional Information: _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
