Discussion
Ryan on 11/Jul/07 09:24:06 PM
Thank you for the article. This was exactly what I was looking for and MS doesn't seem to give to many hints on the MSDN library about how to stop the inheritance.
Ryan
Dityo Nurasto on 19/Aug/07 02:41:15 PM
Thanks a lot. My ASP.NET enterprise manager stop working when installing subtext.
My webhosting seems locking CustomError which make me frustated to debug subtext. I want to override the machine.config, is there anyway to do this?
Chris on 08/Feb/08 01:53:37 AM
Thanks for sharing this, just what I was looking for! Great problem solver for inheritance of themes!
Nathan Harkenrider on 28/Feb/08 11:32:15 AM
Thanks for sharing. This has saved me a ton of time!
湘江 on 16/Mar/08 02:25:58 PM
谢谢你!
tony on 23/May/08 02:33:11 AM
I'm new to iis and .net administration and had been having trouble with virtual directories with vendor app's for the last 4 months. Turns out it was the sql role manager we had configured and I threw your location config in and it's solved every problem I'd been having.
Thanks!
asp.net scripts on 04/Jul/08 03:39:17 AM
Just two days ago I had a client move my script to avoid inheriting stuff from "parent" site. Problem solved, but now when I know this I will now be able to put this into the default config file and not see this kind of problem again. So thanks! :)
Skip Floyd on 10/Jul/08 11:15:41 PM
THANKS! Searched the world over for a answer.
Skip
Mayank on 12/Jul/08 12:52:09 AM
Gr8 solution...
Its work for application
Thomas Hansen on 01/Sep/08 05:19:29 PM
Great writeup, I didn't know :)
I've bookmarked this post now and will implement this to remove the needs for deploying my UrlRewrite DLL also on the Ajax samples at our site which curently is a need :)
Amit Bhatnagar on 04/Sep/08 01:56:14 AM
Hello,
Good article.
What if I have 3 applications underneath the main one, and 2 need to inherit the config values, while 1 doesn't. How do I handle that scenario?
Thanks, and best regards,
- Amit.
Conrad on 07/Sep/08 08:26:31 AM
OMG Thank you! I had a (revenue producing) production application which was dead for over an hour because of this. I has three crappy backup plans, but your site helped me to avoid them all. Thank you, thank you, thank you!
Mark on 09/Oct/08 08:58:32 PM
Very good tip. I had no idea this was possible but your article is concise and well written. With the use of locations to target directories, it's clear that web.config inheritance can be applied selectively.
Thank you!
David Young on 19/Nov/08 12:40:54 AM
Thank you so much! Exactly what I was looking for.
Ed on 24/Nov/08 03:45:48 PM
Thanks...this works great!
One point...probably obvious to most...
The tag goes in the root or top level web.config file that you do not want the settings to trickle down from.
For some silly reason I focused on the lower level web.config in my virtual folder and the tag did no good there of course. Wasted a few hours before the light bulb finally came on for me! ;)
cialas on 27/Dec/08 05:19:44 AM
Thank you for this post, it’s very important problem for my. Great idea.
harshil patel on 04/Feb/09 03:14:26 AM
Thanks a lot, i was looking for this solutions since many weeks, but i found many web sites saying inheritInChildApplications, and some saying allowOverride, i would like to actuallyknow why there are two different attributes with opposite meanings ?
That and really helped me solve my problem, i didn;t think about this, probably i was so messed up with the inheritance tags.
Thanks a lot, u saved me tonnes of unproductive time.
Jason B on 22/Feb/09 03:45:23 AM
I have an issue with trying to stop ConnectionStrings settings. My top-level and sub apps may reference the same data assembly. However, my top app may need to save to one server where the sub-apps may save to another. Right now, the only solution I could find is to use the
tag if the value differed.
Any shortcuts to stop the connectionstrings section from inheriting?
Jason B on 22/Feb/09 03:46:34 AM
...the Remove tag:
<remove name="namespace.Properties.Settings.MyConnectionString" />
Mustafa CAKMAK on 31/Mar/09 08:25:54 PM
where is web.config file :(( I dont know please help me....
Mustafa CAKMAK on 31/Mar/09 11:27:50 PM
Hello.
I added this
include web.config file. but I have a question. which path add in "." this area?? May you show me an example path, please...
thanks...
Matt on 11/Apr/09 01:08:04 AM
Awesome! Thanks!
Robert on 23/Apr/09 08:06:59 PM
How should you disable inheritance of ? This only applies to entries in
Robert on 23/Apr/09 08:08:00 PM
How should you disable inheritance of < configSections />? This only applies to entries in < System.Web />
Derek on 21/Aug/09 12:47:14 AM
One problem with this solution(currently googling for a solution and read through these comments to see if someone had listed one)-- VS2008 does not properly debug if there's a tag in it.... Try it-- try to debug your parent application with the tag in your web.config, and notice that the debugger never starts... Remove the tag, and voilla...
--
Derek
Farida on 04/Mar/10 07:23:44 PM
hello,
I couldn't find "inheritInChildApplications" attribute of the Location tag, rather I could get only "allowOverride" attribute.
plz let me know how and where can I find this.
Thanks & regrds,
Farida
No Limit List on 09/Apr/10 11:47:14 AM
I tried this, but the location tag DOES NOT HAVE a an inheritInChildApplication attribute