操作系统:Windows XP SP3
环境: IIS5.1+dotNet2.0
症状:访问IIS,显示服务器不可用,并且事件查看器中显示:
如下信息:
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.
中文翻译:
aspnet_wp.exe 未能启动。失败的错误代码为 80004005。当辅助进程帐户没有足够的权限读取 .NET Framework 文件时,可能会导致该错误。请确保正确安装了 .NET Framework,并且安装目录的 ACL 允许访问配置的帐户。
解决方法:
写过BAT文档,内容如下:
Echo Stop IIS
iisreset /stop
echo "----------------------"
echo "Deleting the ASPNET account."
net user ASPNET /delete
echo "----------------------"
echo "Reregistering ASP.NET and the ASPNET account."
aspnet_regiis -i
echo "Restarting IIS."
iisreset /start
echo "----------------------"
如果不闲麻烦,可以一条一条语句的输入。
PS:问题至此已经解决。简单吧~~~