运行ASP.NET的程序的时候IIS报错
以前运行ASP程序的时候,报这种错误,直接同步密码就搞定了,最近这个问题郁闷了好几天,实在受不了了。
所以用下面的做法试了一下。问题解决了。
如下:
进入cmd窗口运行下面的命令。
cd %windir%/system32/inetsrv
rundll32 wamreg.dll, CreateIISPackage
regsvr32 asptxn.dll
下面是详细解释:
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.
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.以前运行ASP程序的时候,报这种错误,直接同步密码就搞定了,最近这个问题郁闷了好几天,实在受不了了。
所以用下面的做法试了一下。问题解决了。
如下:
进入cmd窗口运行下面的命令。
cd %windir%/system32/inetsrv
rundll32 wamreg.dll, CreateIISPackage
regsvr32 asptxn.dll
下面是详细解释:
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.