最近IIS突然無法運行ASP.Net了.反復重裝也沒有用.檢查系統日志報告如下錯誤:
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.
許多方法都不靈。最後用這個“藥”解決問題。方子奉上供大家分享:
首先停止IIS服務
iisreset /stop
然後刪除 ASPNET 帳號
net user ASPNET /delete
重新注冊 ASP.NET 和 ASPNET 帳號
aspnet_regiis -i
啟動IIS
iisreset /start