IIS fixes a completely reload method after IIS error _win server

Source: Internet
Author: User
This is not an insurance practice, and many people are still having trouble reloading IIS.

Therefore, it is recommended that you reinstall IIS in any of the following steps:
Copy Code code as follows:

1, uninstall the IIS.
2, remove the%windir%\system32\inetsrv.
3, remove%windir%\iisx.log, X is the IIS version.
4, delete the \inetpub\ directory.
(These actions can be performed in Safe mode.) )
5, Reload IIS.

  
How to exclude IIS from displaying ASP Web page categories: Default columns
Before analyzing the problem, try to access the Web site's Pure static page (in HTM or HTML-suffix pages), if not the normal display, the problem itself is not on the ASP.

Check the settings for IIS to see if you have set up application Settings-Execute permissions-pure script, and have ASP extensions in configuration-mappings. After the IIS settings have been checked correctly, follow the steps.

1, if the site itself has global.asa, first rename it to Global.old, restart the site. Write down the code in Notepad and save it as a test.asp file, accessed in the browser. If it can be displayed correctly, the problem is on the Global.asa file.

2, set the application protection to "low", restart the IISADMIN thread, if you can read the ASP page in the browser, explain the problem IWAM account. If you still can't access the ASP page, check the "Component Services" of the administrative tools to make sure you see the IIS package.

Attachment: If you encounter Component Services that are not open (possibly due to an application full of CPU), add and remove in Control Panel, add and remove Component Services again, and then restart the computer.

3, return the application protection to "medium" or "high", add IWAM account to the Administrator group, if this time ASP page can be browsed, explain IWAM exists a permission problem. If the ASP still does not display properly, enter the DOS window to run the Synciwam.vbs tool on the command line.
C:\inetpub\adminscripts>cscript Synciwam.vbs

4, solve the problem of IWAM account permissions, ah, this talk long, and later published a separate article.

5. Re-establish the IIS packages method:
Delete the following packages in Component Services
? IIS in-process Applications
? IIS Out-of-process Pooled Applications
? IIS Utilities
Use the DOS window to type the following command to re-establish the package
%windir%\system32\inetsrv rundll32 wamreg.dll, CreateIISPackage
Turn off the component Manager and turn it back on, and after you see three new packages, restart IIS (IISRESET) to detect whether the ASP Web page is properly browsed

Copy Code code as follows:

@echo off
Echo is performing an operation, please wait a moment ...
Msdtc-resetlog
net start MSDTC
NET user Iusr_%computername% 111
NET user Iwam_%computername% 111
%systemdrive%
CD%systemdrive%\inetpub\adminscripts
cscript.exe adsutil.vbs set W3svc/wamuserpass 111
cscript.exe adsutil.vbs set W3svc/anonymoususerpass 111
REM cscript.exe synciwam.vbs-v
IISReset
%systemdrive%
CD%SystemRoot%\System32\Inetsrv
rundll32 Wamreg.dll,createiispackage
regsvr32 asptxn.dll
Echo completes, press any key to close and automatically open http://localhost
Pause
Explorer.exe http://localhost
Exit

Because cannot upload. BAT document, please create a new one for IIS XF. TXT document; The above program language is saved in the document and renamed IIS XF. BAT's document, double-click directly to run the OK. Note: Please do not include the Chinese explanation in this paragraph in the document!!!!

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.