Solved

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

Posted on 2009-04-03
5
683 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now