?
Solved

How can I have my stand alone application not inherit from the root web.config, while having other applications inherit?

Posted on 2012-09-04
4
Medium Priority
?
470 Views
Last Modified: 2012-09-06
Hello Experts!

I am having an issue - I am supposed to have this new application run on this website, and use its own separate web.config.
http://www.mainwebsite.com/myNewApplication

So I found out that I can go into the root web.config and use this:




<location inheritInChildApplications="false">
<system.webServer>
....
</system.webServer>
</location>

Works very well! One problem however - I have other applications on this website that are inheriting from the root web.config, and while I have my new application function well, those other applications don't function at all.

How can I have my application work without inheriting from the root web.config, and at the same time have other applications inherit the root web.config?
0
Comment
Question by:vituxa
  • 2
  • 2
4 Comments
 
LVL 16

Expert Comment

by:Imran Javed Zia
ID: 38364579
Hi,
You can use path attribute to control this behavior so kindly visit the following link for more details:

http://msdn.microsoft.com/en-us/library/ms178692(v=vs.100).aspx

Thanks
0
 
LVL 1

Author Comment

by:vituxa
ID: 38364902
I looked at the example and I cannot seem to get that to work.

OK, so my setup is supposed to be like this:
http://www.mainwebsite.com/myNewApplication

In the web.config, right after
<configuration>
I put:

<location path="myNewApplication">
       <system.web>
          <httpRuntime maxRequestLength="5378" executionTimeout="300" />
       </system.web>
    </location>

Please show me how to do it right and where exactly to place it.
0
 
LVL 1

Author Comment

by:vituxa
ID: 38365350
Please someone provide me with a direct example using mainwebsite.com/myNewApplication
0
 
LVL 16

Accepted Solution

by:
Imran Javed Zia earned 2000 total points
ID: 38366714
if you have following url which should not inherit from parent then http://www.mainwebsite.com/myNewApplication

<location path="ParentSite/myNewApplication" inheritInChildApplications="false">
       <system.web>
          <httpRuntime maxRequestLength="5378" executionTimeout="300" />
       </system.web>
    </location>

and in if you have to inherit from parent application for other web application then
http://www.mainwebsite.com/OtherApplication

<location path="ParentSite/OtherApplication" inheritInChildApplications="true">
       <system.web>
         ...
       </system.web>
    </location>
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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.…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month13 days, 15 hours left to enroll

809 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