Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Web.Config in subdirectory inheriting configuration from root of Website

Posted on 2009-05-06
2
Medium Priority
?
2,331 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 2000 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month21 days, 3 hours left to enroll

810 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