If you add a new ASP.NET web site as a virtual directory/application under an existing ASP.NET web site, then you’ll probably be having some problems with web.config inheritance.
Even if the sub-webapp is physically separate, just being in a virtual directory located within another webapp will result in many of the settings being inherited and messing up your sub-webapp.
The method to resolve these issues can be found over at Rick Strahl’s blog entry titled “IIS/ASP.NET Settings and Virtual Directory Inheritance“.
The key is adding in the web.config XML element of <location inheritInChildApplications=”false”> to surround the sections of your top-level web application’s web.config file.
Jim, Thank You for sharing the information in this post. I found your blog and the link to Rick’s web log. The information led to my resolution. I very much appreciate your help!
Just to echo Mick – thanks for this, saved me a headache this morning!
Paul