Child application won't work.

Posted on 2012-09-06
Last Modified: 2012-09-06
I have a root IIS application, and I have added a child IIS application to it that has its own web.config file.

In my root application web.config I have these lines:

 <!--<location path="." inheritInChildApplications="false">--> 
    <validation validateIntegratedModeConfiguration="false" />
      <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <remove name="WebServiceHandlerFactory-Integrated" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
            <error statusCode="404" path="/404.aspx" responseMode="ExecuteURL" />
     <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />

Open in new window

Now, if I uncomment the opening and closing <location> tags above then my child application works fine, but it creates a problem - other children applications stop working.

My child application also has a very large <system.webServer> section. I have tried to place the <clear /> tag in my child application right after the  <system.webServer> tag, but that doesn't do anything. I just get the 500 server error.

Please tell me what I can do to solve this situation.
Question by:vituxa
    1 Comment
    LVL 1

    Accepted Solution

    Solution found!!!! I had to go into the child web.config and use a <remove name="nameOfTheHandler"> in <handlers> and multiple <remove name="nameOfTheModule"> in <modules>

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video discusses moving either the default database or any database to a new volume.

    729 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

    19 Experts available now in Live!

    Get 1:1 Help Now