Win+r run C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe-i re-register asp.net.
If it is a Vista operating system, you need to run the above path in the DOS command window, and the DOS window must be run as an administrator. Otherwise, there will be errors such as the current operation needing to be promoted.
Configuration error: This configuration section cannot be used in this path. This can occur 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".
Configuration file: \\?\*\web.config
Configuration Source: 145: </modules>
146: 147: <remove name= "webservicehandlerfactory-isapi-2.0"/>
This error occurs because IIS 7 uses a more secure Web.config management mechanism, and locks the configuration entry to disallow changes by default. To unlock, you can run the command line: "%windir%\system32\inetsrv\appcmd unlock Config-section:system.webserver/handlers"
IIS Restart command (2008-10-24-16:03:04) Tags: IIS it classification: website construction
IISRESET [ComputerName]
/restart stop and then restart all Internet services.
/start start all Internet services.
/stop stops all Internet services.
/reboot Restart the computer.
/rebootonerror If an error occurs when the Internet service is started, stopped, or restarted
Move the computer.
/noforce do not force termination of the Internet if you attempt to stop the service normally
/TIMEOUT:VAL Specifies the timeout value (in seconds) that waits for the successful stop of the Internet service
If you have specified a rebootonerror parameter, you can reboot after the timeout
The default value for service restart is 20 seconds, stopping to 60 seconds,
Move for 0 seconds.
/status Displays the status of all Internet services.
/enable enable the restart of Internet services on the local system.
/disable disables the restart of Internet services on the local system.