Advertisement

08.13.2008 at 10:34AM PDT, ID: 23645528 | Points: 500
[x]
Attachment Details

Web.config Inheritance

Asked by McExp in WebApplications, Programming for ASP.NET, .NET Framework 2.x

I have a website where there is multiple nested web applications.

www.domain.com\
    web.config (.NET 2.0)
    Site2\
        web.config (.NET 3.5)

Both the root and the Site2 Directory are defined as Virtual IIS directories in IIS

The limitiaiton to only one root directory is stipulated by my web host

Currently in my sub application's web.config I have to have the following

            <httpModules>
      <remove name="ScriptModule" />
                  <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </httpModules>

however when this is then run not in it's production location it fails stating that there is no scriptModule to remove.

Is there anything I can set in the web config to break the inheritance?

or is there a Remove If exisits?Start Free Trial
[+][-]08.13.2008 at 11:32PM PDT, ID: 22228108

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 11:28AM PDT, ID: 22232880

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 07:00AM PDT, ID: 22251867

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 10:53AM PDT, ID: 22254005

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 11:52AM PDT, ID: 22254534

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 02:11PM PDT, ID: 22255519

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 05:29PM PDT, ID: 22256450

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.09.2008 at 09:22PM PST, ID: 22919297

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906