Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Child application won't work.

Posted on 2012-09-06
1
Medium Priority
?
679 Views
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">--> 
 <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </modules>
    <handlers>
      <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" />
    </handlers>
        <httpErrors>
            <error statusCode="404" path="/404.aspx" responseMode="ExecuteURL" />
        </httpErrors>
  <staticContent>
     <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
  </staticContent>
  </system.webServer>
<!--</location>-->

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.
0
Comment
Question by:vituxa
1 Comment
 
LVL 1

Accepted Solution

by:
vituxa earned 0 total points
ID: 38374454
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>
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Integration Management Part 2
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month21 days, 6 hours left to enroll

810 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