Solved

Web.Config in subdirectory inheriting configuration from root of Website

Posted on 2009-05-06
2
2,270 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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