I have a parent application hosted in the root folder of my site. This is a .NET 4.0 application and the application pool is obviously installed in 4.0.
I want to configure a child application:
/ blog
This is a .NET 2.0 application (this is BlogEngine.NET). I created a new virtual directory called "blog", pointed it to the appropriate directory, converted it to an application, and put in it my own application pool installed in the .NET Framework 2.0.
I edited the parent web.config and added:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
....entire web.config basically...
</location>
</configuration>
Immediately after the item. However, when I go to http: // localhost / blog , I get the following error:
The 'configSections' configuration section could not be read because the section declaration is missing
- , ?