又碰到IIS 访问asp得到500错误

     上次碰到这个问题,是因为Com+ 没有IIS Out-Of-Process Pooled Applications, 当时好像是重装了下IIS解决了(记得不是很清楚。) 无奈今天问题又出现了,我也不知道咋回事,不过显然跟上次不一样。

     IIS Out-Of-Process Pooled Applications还在那运行的好好的,看帖子说要同步下密码,所以执行了下 C:\Inetpub\AdminScripts>synciwam.vbs, 结果得到一个80110414的错误;然后有找了下,发现的确是密码不同步造成,解决步骤如下,

To resolve this issue, reset the passwords for the IUSR and the IWAM accounts so that they are the same in both the Internet Information Services (IIS) metabase and in the local accounts directory. To do this, follow these steps: 1. Click Start, point to Programs, point to Administrative Tools, and then click Computer Management.  
2. Under System Tools, click Local Users and Groups, and then click Users. 
3. Right-click IUSR_ComputerName, and then click Set Password. 
4. Click Proceed. 
5. Type the password in the New password box and in the Confirm password box, and then click OK. 
6. Right-click IWAM_ComputerName, and then click Set Password. 
7. Click Proceed. 
8. Type the password in the New password box and in the Confirm password box, and then click OK. 
9. Quit Computer Management. 
10. Click Start, and then click Run. 
11. In the Open box, type cmd and then click OK. 
12. Type cd drive:\inetpub\adminscripts, where drive is the drive where Windows is installed, and then press ENTER. 
13. To reset the password for the IUSR_ComputerName account, type the following command (where password is the password that you set in step 5), and then press ENTER:
               adsutil.vbs set w3svc/anonymoususerpass "password" 
14. To reset the password for the IWAM_ComputerName account, type the following command (where password is the password that you set in step 8), and then press ENTER: 
               adsutil.vbs set w3svc/wamuserpass "password" 
15. Update the starting identity of all IIS COM+ application packages by typing the following at the command prompt: 
               synciwam.vbs -v
Note You may need to restart IIS for all changes to take effect. To restart IIS, click Start, click Run, type iisreset, and then click OK. 

 

    说的有点多,但是非常清晰可执行,简而言之,就是设置了4个密码,最后执行了个同步。记录以备忘,及给其他人参考,此法确实可行。

    顺便说下,看了养成随手记笔记的习惯真的很重要,拖着等有空再记下来,结果往往是不会记的,因为都忘记了,或是忘记了重点。很多问题解决了下次出现又要重新想办法。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值