我的winXP professional下的IIS无法正常显示ASP页,提示信息如下:
——————————————————–
Server Application Error
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.
——————————————————–
日志信息如下:
——————————————————–
The server failed to load application ‘/LM/W3SVC/1/ROOT’. The error was ‘The server process could not be started because the configured identity is incorrect. Check the username and password.
‘.
For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
——————————————————–
查到的方法是重新建立IIS包,如下:
1、控制面板–管理工具–组件服务–控制台–组件服务–计算机–COM+ Applications–删除IIS In-Process Applications,删除IIS Out-Of-Process Pooled Applications,删除IIS Utilities(注意:需要在各项删除的项目上点右键–属性–高级–点掉删除保护)
2、rundll32 c:\windows\system32\indtsrv\wamreg.dll, CreateIISPackage(注意:这里的路径根据需要修改)
3、重启IIS:IISRESET
现在打开浏览器试试,可以正常看到ASP页面了:)
网上有的中文提示“服务器无法加载应用程序 ‘/LM/W3SVC/1/ROOT’。错误是 ‘没有注册类别 ‘”的错误也用这种方法修复。
下面附英文说明:
——————————————————–
As a last resort, you can re-create the IIS packages. To do this, follow these steps:
Browse to Component Services and delete the following packages:NOTE: To delete the packages, you must first open the properties of the package, click the Advanced tab, and then click to clear the Disable Deletion check box.
IIS In-Process Applications
IIS Out-of-Process Pooled Applications
IIS Utilities
Open a command prompt, and then use the following command to switch directories:
cd %windir%\system32\inetsrv
Run the following commands:
rundll32 wamreg.dll, CreateIISPackage
NOTE: “CreateIISPackage” must be typed exactly; it is case-sensitive.
regsvr32 asptxn.dll
Close and reopen Component Services. You should see all three IIS COM+ applications that have been recreated.
Run IISRESET from a command line and test any ASP page that previously did not load correctly.
——————————————————–
发表回复