域用户下aspnet_wp.exe 不能正常启动问题解决方法

最近把机器加到域里,发现程序跑不起来了。打开Event View,看到了一堆错误,大多是这2种:

1.aspnet_wp.exe could not be launched because the username and/or password supplied in the processModel section of the config file are invalid.

2.aspnet_wp.exe could not be started. The error code for the failure is 80004005. This error can be caused when the worker process account has insufficient rights to read the .NET Framework files. Please ensure that the .NET Framework is correctly installed and that the ACLs on the installation directory allow access to the configured account.

Google 发现微软对这个问题有解答:http://support.microsoft.com/kb/315158

总共三种方法:

  • Create a weak account that has the correct permissions, and then configure the <processModel> section of the Machine.config file to use that account.
  • Set the userName attribute to SYSTEMin the <processModel> section of the Machine.config file.
  • Configure the <processModel> section of the Machine.config file to use an administrator account.

我试了第2种,在

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config (因为我用的是.NET 4.0)打开 "machine.config”文件。

找到processModel.

默认是这样子的:<processModel autoConfig=”true”/>   改成:<processModel userName="SYSTEM"/>

然后需要重启IIS.  Start -> Run -> IISRESET

至此问题解决。

 

其他2种方法没有试,应该也是好用的。

 

 

转载于:https://www.cnblogs.com/breakout/archive/2012/06/14/2548765.html

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值