iis的500错误?

来源:百度知道 编辑:UC知道 时间:2024/05/30 01:04:54
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.

在网上有人提供解决方法:1。右键我的电脑--管理--本地用户和组,给IUSR_机器名和IWAM_机器名两个用户设置密码,要一样。

2。开始--运行--输入cmd,
然后cd c:\Inetpub\AdminScripts
然后cscript.exe adsutil.vbs set w3svc/wamuserpass 你的密码,
然后cscript.exe adsutil.vbs set w3svc/anonymoususerpass 你的密码

看一下,行了没有?如果还不行,那么
cscript.exe synciwam.vbs -v,
然后iisreset

可我一运行cscript.exe synciwam.vbs -v 这条指令就提示
C:\Inetpub\AdminScripts>cscript.exe synciwam.vbs -v
Microsoft (R) Windows Script Host Version 5.6
版权所有(C) Microsoft Corporation 1996-2001。保留所有权利。

IIS Applications Defined:
Name, AppIsolated, Package ID
ROOT, 2,
IISHelp, 2,

Out of process applications defined:

网上千篇一律地都是一些关于修改IE设置和IWAM_MYSERVER账号密码的解决方法。一一试过后,没一个有用的解决方法。终于发现了一个很好的解决办法了.

如果朋友们修改了IE的设置,修改了IWAM_MYSERVER账号密码后,IIS运行的页面还出现HTTP 500这个错误的时候,请试试下面这个方法吧:

1、在“开始”-“设置”-“控制面板”-“管理工具”-“服务”中,查看Distributed Transaction Coordinator服务(即DTC)和COM +Event System服务是否启动,若没有启动,请将这两个服务都启动。另外,我的机子上又出现现一个问题,就是DTC服务无法启动,这时候就在cmd窗口中先后执行下列两条命令:

(1)msdtc -resetlog

(2)net start msdtc

执行完这两条语句后,DTC就能启动成功了。

2、执行完上述操作后,接下来就在cmd窗口中再先后执行以下三条命令:

(1)cd %windir%\system32\inetsrv

(2)rundll32 wamreg.dll,CreateIISPackage

(3)regsvr32 asptxn.dll

这三条命令中,第二条的CreateIISPackage一定要注意,区别大小写,否则会出错。以上操作都完成后,再通过IIS来运行我的所有HTML和ASP页面都成功了!希望能帮得上大家的忙啊~~~