Today in the local installation of IIS, build Web site, the application error when the following errors:
Server error in Internet Information Services 7.5 Error Summary HTTP Error 500.19-internal Server error cannot access the requested page because the page's related configuration data is invalid. Verbose error message module IIS WEB Core notification BeginRequest Handler has not determined the error code 0x80070032 configuration Error cannot read the configuration section "System.Web.Extensions" because it lacks a section declaration configuration file \\?\e:\ Urlhttp://localhost:8088/amacservice/amacservice.svc physical path for 12.service\amacservice\web.config request E:\12.service\ Amacservice\amacservice.svc logon method has not determined that the logged-on user has not yet determined the configuration source : </system.web>: <system.web.extensions> : <scripting> Links and more information This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event log contains more information about the cause of this error. See more information?
the operating environment is checked first:
1. The. NET 4.0 runtime is already installed
2. Set up Web site based on. net4.0
3. Modify "Managed piping mode", Set the Manage Pipeline mode from Integrated to classic (by integration into the classics)
And soft, the problem is still unresolved.
Finally, the Microsoft Forum found a solution:
This is the because config section hasn ' t declared. In 4.0 webconfig you has to add it manually.
<configsections><sectiongroup name= "system.web.extensions" type= " System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, version=4.0.0.0, culture=neutral , publickeytoken=31bf3856ad364e35 "><sectiongroup name=" scripting "type=" System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, version=4.0.0.0, Culture=neutral, Publickeytoken=31bf3856ad364e35 "><section name=" scriptResourceHandler "type=" System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, version=4.0.0.0, culture= Neutral, publickeytoken=31bf3856ad364e35 "requirepermission=" false "allowdefinition=" MachineToApplication "/> <sectiongroup name= "webservices" type= "System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, version=4.0.0.0, Culture=neutral, publickeytoken=31bf3856ad364e35 "><section name=" Jsonserialization "Type=" System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, publickeytoken=31bf3856ad364e35 "requirepermission=" false "allowDefinition=" Everywhere "/><section name=" ProfileService "type=" System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, version=4.0.0.0, Culture=neutral, publickeytoken=31bf3856ad364e35 "requirepermission=" false "Allowdefinition=" MachineToApplication "/><section name=" AuthenticationService "type=" System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, version=4.0.0.0, culture= Neutral, publickeytoken=31bf3856ad364e35 "requirepermission=" false "allowdefinition=" MachineToApplication "/> <section name= "RoleService" type= "System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, version=4.0.0.0, Culture=neutral, publickeytoken=31bf3856ad364e35 "requirepermission=" false "allowDefinition=" MachineToApplication "/></sectiongroup></sectiongroup></sectiongroup></configsections >
Add the above, in the IIS7 management interface no longer error!
This article references: http://blog.csdn.net/maxwoods/article/details/8723221
IIS cannot read the configuration section "System.Web.Extensions" because it lacks a section declaration