[Mono-bugs] [Bug 51818][Wis] New - Configuration Exception when loading web.config in a non-root application

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 7 Dec 2003 04:44:00 -0500 (EST)


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 yoros@wanadoo.es.

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

--- shadow/51818	2003-12-07 04:43:59.000000000 -0500
+++ shadow/51818.tmp.13753	2003-12-07 04:43:59.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 51818
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: yoros@wanadoo.es               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Configuration Exception when loading web.config in a non-root application
+
+Running XSP with:
+
+xsp.exe --root /var/www --applications "/mono:/var/www/mono"
+
+And having installed mono-tests pages in /var/www/mono... it fails with a
+configuration exception:
+
+System.Configuration.ConfigurationException: Already have a factory for
+mono.aspnet/acceptEncoding(/var/www/mono/web.config line 5)
+in <0x00055> System.Web.Configuration.ConfigurationData:ThrowException
+(string,System.Xml.XmlTextReader)
+in <0x003d1> System.Web.Configuration.ConfigurationData:ReadSection
+(System.Xml.XmlTextReader,string)
+in <0x00073> System.Web.Configuration.ConfigurationData:ReadSections
+(System.Xml.XmlTextReader,string)
+in <0x00201> System.Web.Configuration.ConfigurationData:ReadSectionGroup
+(System.Xml.XmlTextReader,string)
+in <0x0016d> System.Web.Configuration.ConfigurationData:ReadSections
+(System.Xml.XmlTextReader,string)
+in <0x000e3> System.Web.Configuration.ConfigurationData:ReadConfig
+(System.Xml.XmlTextReader,bool)
+in <0x000d2> System.Web.Configuration.ConfigurationData:LoadFromFile (string)
+in <0x000e8> System.Web.Configuration.ConfigurationData:LoadFromFile (string)
+in <0x002db>
+System.Web.Configuration.WebDefaultConfig:GetConfigFromFileName
+(string,System.Web.HttpContext)
+in <0x00056> System.Web.Configuration.WebDefaultConfig:GetConfig
+(string,System.Web.HttpContext)
+in <0x00030> System.Web.Configuration.WebDefaultConfig:GetConfig (string)
+in <0x00018> System.Web.Configuration.WebConfigurationSettings:GetConfig
+(string)
+in <0x0000d> System.Web.HttpContext:GetAppConfig (string)
+in <0x00020> System.Web.QueueManager:.ctor ()
+in <0x0004c> System.Web.HttpRuntime:OnFirstRequestStart
+(System.Web.HttpContext)
+in <0x00097> System.Web.HttpRuntime:OnFirstRequestStart
+(System.Web.HttpContext)
+in <0x000e4> System.Web.HttpRuntime:InternalExecuteRequest
+(System.Web.HttpWorkerRequest)
+
+
+In the other hand, if I change "/mono:/var/www/mono" with "/:/var/www/mono"
+it works right.