Solved

Web.Config in subdirectory inheriting configuration from root of Website

Posted on 2009-05-06
2
2,259 Views
Last Modified: 2012-05-06
I have a DNN webite running in DirectoryA underneath that there is a separate application running in DirectoryA\DirectoryB. They both have web.config files and are defined as unique applications in IIS.
It's been a while since I did any ASP.NET development so I don't recall how to stop the web.config for ApplicationB from inheriting certain configuration keys from applicationA.

ApplicationA is a dotnetnuke application running in the Default Application Pool
ApplicationB is a C# web app running it's own Application Pool (folder name)

I understand what's happening I just don't know how to remedy it.

the first hangup in applicationB is below and it's getting that key from ApplicationA's web.config (DNN)


Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The code subdirectory '/owner/App_Code/HTML/' does not exist.

Source Error:


Line 104:      -->
Line 105:      <codeSubDirectories>
Line 106:        <add directoryName="HTML" />
Line 107:      </codeSubDirectories>
Line 108:    </compilation>

0
Comment
Question by:Michael Knight
2 Comments
 
LVL 37

Accepted Solution

by:
samtran0331 earned 500 total points
ID: 24317800
Have you seen this?
http://www.aspdotnetfaq.com/Faq/how-to-disable-web-config-inheritance-for-child-applications-in-subfolders-in-asp-net.aspx

Read the entire article...but the important part starts at:
"Here is the solution:"

0
 
LVL 9

Author Closing Comment

by:Michael Knight
ID: 31578598
that's the one, thanks.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question