Alex Rivera | Logout

Is it possible to completely negate a "higher" web.config in a subfolder?

Asked 2009-04-23T22:08:25.167
12

Is it possible to completely negate a web.config in a subfolder?

Obviously, I have a web.config in the root.

If I have a subfolder called "MyApp", can I write a bunch of code in there and have it run without any reference to the web.config at root? It would have its own web.config, and wouldn't even reference the "higher" web.config in root.

What I'm looking for is complete App isolation. I'd like to be able to write an app in a subfolder of an existing site, which ignores the entire web.config hierarchy above it -- the app would an island all to itself.

I know I can use the "clear" element, but is that the best way? Just put a "clear" under every top level element? Just wondering if there's another way.

Duplicate of Will a child application inherit from its parent web.config?

Edit
Report

1 Answer

1

No. By design for shared hosting and simplicity sake.

IIS7 changes that a little by allowing the configs to be explicitly locked/unlocked.

answered 2009-04-24T04:50:59.457

Your Answer