IIS configuration error 500.19 - Internal Server Error pages can not access the requested page because the configuration data is invalid Solution

The occurrence of possible causes

HTTP Error 500.19 - Internal Server Error first installed .net and then install the iis This error occurs;

See: Https://Blog.Csdn.Net/sinat_29581293/article/details/51171891

solution

1, the command line to re-register at asp.net:

# 32

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i 

64 is performed by the following command

C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i 

2, unlocked configuration items:

Configuration Error: You can not use this configuration section in this path. If you lock the section on the parent level, this situation would arise. Lock is the default setting (overrideModeDefault = "Deny"), or by including overrideMode = "Deny" or the old allowOverride = "false" position marker explicitly set. 

Profile: \\ \ * \ web.config? 

Configuration Source: 145: </ modules> 
146: <handlers> 
147: <the Remove name = "WebServiceHandlerFactory-ISAPI-2.0" /> 

This error occurs because IIS 7 uses safer Web.Config management mechanism, by default locks the configuration items are not allowed to change. To unlock can run a command line cmd: "

%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers

 

other 

IIS commonly used commands

iisreset to restart IIS

/ RESTART stop and then restart all Internet services. 
/ The START Start all Internet services. 
/ STOP to stop all Internet services. 
/ REBOOT Restart your computer. 
/ REBOOTONERROR If an error occurs when starting, stopping, or restarting Internet services
The computer. 
/ NOFORCE If you try to stop the normal service failure, not forced to terminate Internet 
 / TIMEOUT: Val specify a timeout value to wait for Internet services successfully stopped (in seconds
If the parameter is specified REBOOTONERROR, timeouts can be restarted 
Restart the service defaults to 20 seconds, the stop is 60 seconds, the meter
Moving to 0 seconds. 
/ The STATUS displays the status of all Internet services. 
/ ENABLE is enabled on the local system to restart Internet services. 
Restart the / DISABLE Disabled Local System Internet services.

 

Guess you like

Origin www.cnblogs.com/yx007/p/11018317.html