Disabling Web.Config Inheritance

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?
 
J

John Saunders

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top