Thursday, November 10, 2011

HTTP Error 500.19 - Internal Server Error


HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information
ModuleIIS Web Core
NotificationBeginRequest
HandlerNot yet determined
Error Code0x800700b7
Config ErrorThere is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
Config File\\?\C:\Temp\test2\web.config
Requested URLhttp://localhost:80/mvc2
Physical PathC:\Temp\test2
Logon MethodNot yet determined
Logon UserNot yet determined

Fix:


If your plan is to deploy to an IIS that has an Application Pool running in .net 4.0 you will need to cleanup the web.config that includes all the section Definitions that point to .net 3.5. The reason this fails is because these section definitions are already included in the root web.config in .NET 4.0 (see %windir%\microsoft.net\framework\v4.0.30319\config\machine.config) that include all the system.web.extensions declared already.
Another quick fix is to have the application pool set to 2.0 just as your development machine appears to have. 
Delete or comment out all the system.web.extensions configuration section definitions and configuration section group definitions from the application-level

0 коммент.:

Post a Comment

Powered by Blogger.