How to properly configure a child IIS 7.5 application?

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

- , ?

+3
2

, , IIS . web.config , . 4.0 3.5 , SO , , , , , .

+2

BlogEngine Asp.net 4.0?

- BE 2.0, Visual Studio, : " 4.0?" , web.config .

web.config .

BE, .

0

All Articles