468,272 Members | 2,020 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,272 developers. It's quick & easy.

Disabling Web.Config Inheritance

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?
Nov 17 '05 #1
1 1702
"Chris" <cm**@walshgroup.com> wrote in message
news:44**************************@posting.google.c om...
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!
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by David | last post: by
9 posts views Thread by gerry | last post: by
3 posts views Thread by apiringmvp | last post: by
12 posts views Thread by Ben | last post: by
2 posts views Thread by John A Grandy | last post: by
5 posts views Thread by =?Utf-8?B?SmVycnkgQw==?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.