Server ASP. 3.5 HTTP Error 500.19-internal Server error cannot access the requested page because the associated configuration data for the page is invalid.

Source: Internet
Author: User

Configuration error: This configuration section cannot be used in this path. This behavior occurs if the section is locked at the parent level. The lock is set by default (overridemodedefault= "Deny"), or is explicitly set by a location tag that contains overridemode= "deny" or the old allowoverride= "false".

For this situation I Baidu a bit, almost all the answers are similar.

Workaround:

This error occurs because IIS 7 employs a more secure Web. config management mechanism, which by default locks the configuration items from being allowed to change. To unlock you can run the command line%windir%\system32\inetsrv\appcmd unlock config-section:system.webserver/handlers as an administrator. The handlers is the name of the node in the error message that is displayed in red characters.

If modules is also locked, you can run%windir%\system32\inetsrv\appcmd unlock config-section:system.webserver/modules

Note: To run as Administrator, the default is not the administrator identity, method, the Start menu in the search program and file input cmd, will appear above a CMD.EXE, click on the CMD.EXE file, select "Run as Administrator", open the Command line window, Enter the above command.
Also, if you are using an ASP. NET friend, when installing IIS7, please check the ASP. NET, the default is not selected, there will be similar error message

I want to emphasize a point, my problem is the server problem, used to solve the operation of this machine is useless, but the local IIS success or not, I am not clear, through my test, as follows

Workaround:

Remove the following

<modules>
<remove name= "Scriptmodule"/>
<add name= "Scriptmodule" precondition= "Managedhandler" type= "System.Web.Handlers.ScriptModule, System.Web.Extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35 "/>
</modules>
<remove name= "webservicehandlerfactory-integrated"/>
<remove name= "ScriptHandlerFactory"/>
<remove name= "Scripthandlerfactoryappservices"/>
<remove name= "ScriptResource"/>
<add name= "ScriptHandlerFactory" verb= "*" path= "*.asmx" precondition= "Integratedmode"
Type= "System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, version=3.5.0.0, Culture=neutral, Publickeytoken=31bf3856ad364e35 "/>
<add name= "scripthandlerfactoryappservices" verb= "*" path= "*_appservice.axd" precondition= "IntegratedMode"
Type= "System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, version=3.5.0.0, Culture=neutral, Publickeytoken=31bf3856ad364e35 "/>
<add name= "ScriptResource" precondition= "Integratedmode" verb= "Get,head" path= "ScriptResource.axd" type= " System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, version=3.5.0.0, Culture=neutral, PublicKeyToken =31bf3856ad364e35 "/>

Save Refresh under

If you are prompted to add

<system.web>
<customerrors mode= "Off"/>

</system.web>

Plus you can, I test success.

Server ASP. 3.5 HTTP Error 500.19-internal Server error cannot access the requested page because the associated configuration data for the page is invalid.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.