IIS configuration and Error prompt resolution _win server

Source: Internet
Author: User

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.

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.