Solved

ASP.NET web.config inheritance 1.1 child vs 2.0 child

Posted on 2009-04-03
5
754 Views
Last Modified: 2013-11-07
Is there a way to prevent a ASP.NET 1.1 child application from inheriting a web.config from the parent?  Our main root application is 2.0.  We have settings in that web.config for 2.0 that is not recognized in 1.1.  So we want child 2.0 applications to inherit these settings but NOT 1.1 child applications since they don't recognize them.  Any idea how to do this?
0
Comment
Question by:ibidata
[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
  • 2
5 Comments
 
LVL 2

Expert Comment

by:taliesin1977
ID: 24065066
I have seen other blogs indicating that the property "inheritInChildApplications" is only support for .NET 2.0 and later and will cause an exception with the .NET 1.1 application reads it.

Perhaps you can use a combination of <location> and the <clear /> command to just clear out the sections you don't need in your child application...Also though, could you not just override the offending sections in the child app's web.config to a 1.1 compliant format?
0
 

Author Comment

by:ibidata
ID: 24076679
I've added the <system.webServer> section to the root web.config because other 2.0 child applications need it.  However, this section causes a server error in child 1.1 applications.  How do I hide or disable this section from child 1.1 applications?

Doing this in the child 1.1 web.config causes the same error:

<system.webServer>
      <clear/>
</system.webServer>
0
 

Accepted Solution

by:
ibidata earned 0 total points
ID: 24076750
0
 
LVL 27

Expert Comment

by:nmarun
ID: 24081304
Please accept your solution and mark this issue for PAQ.
0

Featured Post

Cloud Training Guides

FREE GUIDES: In-depth and hand-crafted Linux, AWS, OpenStack, DevOps, Azure, and Cloud training guides created by Linux Academy instructors and the community.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

627 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