[Mono-bugs] [Bug 77560][Wis] New - child web.config overrides parent web.config

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Feb 15 03:41:02 EST 2006

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 vavra at software602.cz.


--- shadow/77560	2006-02-15 03:41:02.000000000 -0500
+++ shadow/77560.tmp.17772	2006-02-15 03:41:02.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 77560
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: vavra at software602.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: child web.config overrides parent web.config
+ I use http handlers. 
+1) I have root /testweb/web.config, where I define
+<add verb="GET" path="HandlerA.ashx"	type="HandlerA, web" />
+2) I have subdir /testweb/documents and there also a web.config:
+<add verb="GET" path="HandlerDoc.ashx"	type="HandlerDoc, web" />
+Apache is configured normaly - virtual directory points to /testweb.
+The HandlerA is taken as handler in all paths except of /testweb/documents.
+The problem is that /testweb/documents/web.config overrides configuration
+of /testweb/web.config. So in context of /testweb/documents there is not
+taken the HandlerA  as a handler.
+The MS doc says:
+Multiple configuration files, all named Web.config, can appear in multiple
+directories on an ASP.NET Web application server. Each Web.config file
+applies configuration settings to its own directory and all child
+directories below it. Configuration files in child directories can supply
+configuration information in addition to that inherited from parent
+directories, and the child directory configuration settings can override or
+modify settings defined in parent directories.
+I think that in this case the child web.config should EXTEND configuration,
+not override. There is an <add> element ....

More information about the mono-bugs mailing list