duplicate 'system.web.extensions/scripting/scriptResourceHandler

Mar 5, 2011 at 2:04 AM
 

I cannot get Blogengine 2.0 running. I keep getting the following error: "There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined", yet I do not see that when I look at the Web.Config. This is a first time install. I simply copied the Web zip file, added the directory as an application under IIS and this is where I've gotten. Any ideas?

 -- xavier

Coordinator
Mar 5, 2011 at 2:18 AM

The default web.config file for BE defined a "system.web.extensions" section in it.  If your website is running in a .NET 4.0 application pool, you don't need this section definition, and should instead use a different web.config file designed for .NET 4.0.

In the /setup folder is a file named ASP.NET_4.0_Web.Config.  Rename this to web.config and overwrite the one you have in the root folder.

Mar 5, 2011 at 7:42 PM

Alternatively, you could open BE in Visual Studio and set Target Framework to 4.0. Web.config will be modified to run on 4.0.

Mar 6, 2011 at 1:17 PM

Thanks all, you solved it!