Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-04-03
5
Medium Priority
?
776 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

Application Discovery Service in AWS

In the era of the cloud, customers migrating away from their existing on-premise infrastructure. This requires lots of planning, strategies, and effort to identify their existing resources and determine how best to migrate.  Datacenter migrations happen in four phases -

Question has a verified solution.

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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

722 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