Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to host my ASP.net MVC2 application on MS Server 2008. When I attempt to view the website it returns a 500.19 internal server error. The error message claims that there is a duplicate section defined.

Config Error There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined

This section does not even exist in the application's web.config.

The physical location of my website is c:\TestPortal but the error appears to be complaining about a web.config file that is not even related to this application

Config File \?\C:\UriAbstraction\web.config

I have created an Application under the 'Default Web Site' and the physical location is correctly set.

Why is iis given me this error when I am visiting my application? Thanks!

share|improve this question
add comment

1 Answer

You probably have .NET 4.0 installed, right?

"The workaround for the second scenario is to delete or comment out all the system.web.extensions configuration section definitions and configuration section group definitions from the application-level Web.config file. These definitions are usually at the top of the application-level Web.config file and can be identified by the configSections element and its children."

source: http://forums.asp.net/t/1571308.aspx/1

and http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.