Solved

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

Posted on 2009-04-03
5
741 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 27

Expert Comment

by:nmarun
ID: 24064986
0
 
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

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…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

751 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