Disabling Web.Config Inheritance

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

On my development machine I have one website running in the root, and
I have another site running in a virtual directory.

Is there any way that I can instruct the web.config file in the
virtual directory to NOT inherit the contents of the web.config in the
root web?
 
Chris said:
On my development machine I have one website running in the root, and
I have another site running in a virtual directory.

Is there any way that I can instruct the web.config file in the
virtual directory to NOT inherit the contents of the web.config in the
root web?

No. The best you can do is to negate in the virtual directory the things in
the root web.config that you don't like.

Sometimes, you have to jump through hoops, though. I had a parent web.config
which had a <http/> section. In order to get rid of the module in the child,
I had to include a copy of it in the child's bin directory - just so I could
<remove /> it in the child!
 
Back
Top