In this short article I will explain how to resolve the following warning raised by Visual Studio when Location Tag is used along with the inheritInChildApplications attribute in the Web.Config of an ASP.Net Application.
The ‘inheritInChildApplications’ attribute is not allowed
Solution
The solution to this problem is to add the following namespace by setting the xmlns attribute of the configuration tag in the Web.Config file as shown below.
Replace
With
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">