在網域控制站或備份網域控制站上安裝 Microsoft Visual Studio .NET 或 Microsoft .NET 架構後,如果您嘗試運行 ASP.NET 應用程式,則瀏覽器會顯示下面的錯誤資訊:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable.
Please hit the "Refresh" button in your web browser to retry your request.
此外,系統應用程式事件記錄檔中會記錄以下事件:
aspnet_wp.exe could not be launched because the username and/or password supplied in the processModel section of the config file are invalid.
aspnet_wp.exe could not be started.
HRESULT for the failure:80004005
此問題涉及 Internet 資訊服務 (IIS) 5.0 版或更高版本。
<原因>
預設情況下,為了提供更安全的環境,ASP.NET 用弱帳戶(名為 ASPNET 的本機電腦帳戶)運行它的輔助進程。網域控制站或備份網域控制站上的所有使用者帳戶都是域帳戶,不是本機電腦帳戶。因此,Aspnet_wp.exe 由於找不到名為"localmachinename\ASPNET"的本地帳戶而未能啟動。要在網域控制站上提供有效使用者帳戶,必須在 Machine.config 檔案的 <processModel> 部分指定顯式帳戶,或者必須使用 SYSTEM 帳戶。