Contact Us  |  Knowledge Base  |  Control Panel 
Article Details
My ASP.NET site seems to be using the wrong web.config file.

ISSUE:

When you put an ASP.NET application into a virtual directory, it appears to be using the web.config file from the root.

CAUSE:

This is by design with ASP.NET .  This is not a bug.

RESOLUTION

By design, ASP.NET web.config files "inherit" from each other.  If you have a web.config in the root and a web.config in a vitual directory, the web.config in the virtual directory inherits from the web.config in the root.

As a work around, you will need to create a subdomain to deploy your code into.  When using a subdomain, web.config files do not inherit from each other.