Server Application Error
IIS错误症状
- 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.
出现这样的情况是主要是由于IWAM账号(在我的计算机即是IWAM_MYSERVER账号)的密码错误造成了HTTP 500内部错误。排除了一些基本的可能性外,我在网上搜寻了一下解决办法。
1. 启动MSDTC服务。
什么是MSDTC服务?显示名称:Distributed Transaction Coordinator;描述:协调跨多个数据库、消息队列、文件系统等资源管理器的事务。如果停止此服务,则不会发生这些事务。如果禁用此服务,显式依赖此服务的其他服务将无法启动。
CMD下net start msdtc
结果显示“distributed transaction coordinator 服务不能启动”。
解决方法
- 把 C:\WINDOWS\system32\dtclog 这个目录重命名(如果有的话,没有就直接省去这一步),然后重新建立该目录。
- 在命令行下: msdtc -resetlog
- 再net start msdtc,显示服务启动成功了。
2. 右键我的电脑–管理–本地用户和组,给IUSR_机器名和IWAM_机器名两个用户设置密码,要一样。
3. “开始”->“运行”->打开cmd,
4. cd C:\Inetpub\AdminScripts 进入AdminScripts目录
5. cscript.exe adsutil.vbs set w3svc/wamuserpass 你设置的密码
7. cscript.exe adsutil.vbs set w3svc/anonymoususerpass 你设置的密码
如果还不行,那么
执行如下操作
- cscript.exe synciwam.vbs -v,然后iisreset。
还是不行,最后在CMD下执行以下命令:
执行如下操作
- cd %windir%\system32\inetsrv
- rundll32 wamreg.dll, CreateIISPackage
- regsvr32 asptxn.dll
清除缓存,重新打开IE
标签: 奇技淫巧
