Disable Web Config inheritance for Virtual Application

If you have a lot of virtual applications under your webiste
You can Disable the main website's web config so it won't inherit to your Virtual Application.
It's quite simple about how to disable this Web Config's inheritance. All you have to do is simply modify your Web config with a <location> tag. The <location> tag can prevent inheritance for part of the web config.

<?xml version="1.0"?>
<location path="." inheritInChildApplications="false">

Was this answer helpful?

 Print this Article

Also Read

I get a configuration error when I execute my application in a subdirectory. How do I resolve this?

This error may occur if the application is being run out of a subfolder and the subfolder is not...

I get an error 'A potentially dangerous Request.Form value was detected from the client ' when I hit submit on my ASP.NET Webform. What can I do?

This error is caused by a newly introduced feature of .NET Framework 1.1, called "Request...

I am using ASP.NET and Internet Explorer Web Controls and it does not work when I open the page. What is wrong?

For Internet Explorer Web Controls to work properly you need to have the required HTML...

How do I setup custom error for my ASP.net application?

ASP.net has its own built-in error handling. To set up custom error handling for your ASP.net...

ASP.NET Validation is not working on your server.