Solved

Web.Config in subdirectory inheriting configuration from root of Website

Posted on 2009-05-06
2
2,254 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:michaelaknight
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:michaelaknight
ID: 31578598
that's the one, thanks.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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 …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 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