域用户下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种方法没有试,应该也是好用的。

 

 

posted @ 2012-06-14 08:50  breakout  阅读(430)  评论(0编辑  收藏  举报