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

After I configure the custom error setting in the control panel, I still get the generic error page?

Custom error setting is a web server setting that sets your website Error Pages, but you can...

In one of the applications I want to host, there must be a write privilage to ASPNET account so that it will be able to create folders, so is that possible ?

Yes, that is possible. In fact you can set the read and write permission yourself. Our control...

How do I get my ASP.net application to display non-English language


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 did I send email from ASP.net ?

You have to use System.Web.Mail namespace Below is the code snippets : using System.Web.Mail;...