2010-11-11 69 views
1

我正在運行IIS5.0,並且正在嘗試將ASP.NET進程帳戶更改爲我的域用戶帳戶。將aspnet用戶更改爲域用戶以訪問iis

我遵循了一切可能here

當我瀏覽.svc文件(這是一個WCF服務)我得到這個錯誤:

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.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.

事件日誌說:

aspnet_wp.exe could not be started. The error code for the failure is 80070522. 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.

當我運行客戶端,我得到以下錯誤:

The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 872 bytes of the response were: '

回答

0

如果您將您的域帳戶放在IIS_WPG組下,它應該ide盟友的工作。如果它不起作用,有一個確定的方法來修復它。

在IIS 6中...第1步是適用...因爲您是在IIS 5,忽略第1步

  1. 與本地系統開始運行。如果應用程序運行,這意味着您的IIS配置良好,您可以繼續執行步驟2.

  2. 將帳戶更改爲您的域帳戶,並確保您已將該帳戶也置於IIS_WPG中。之後,運行名爲Process Monitor的工具http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

  3. 現在瀏覽應用程序。如果仍然出現錯誤,請切換到進程監視器並停止捕捉[菜單選項]。

  4. 搜索拒絕並修復它。 http://blogs.msdn.com/b/rahulso/archive/2006/01/18/using-filemon-regmon-to-solve-quot-access-denied-quot-issues.aspx

+0

試過,它顯示了所有aspnet_wp.exe進程取得成功。並且沒有訪問被拒絕的字符串。但仍然收到上述錯誤「服務器應用程序不可用」 – genericuser 2010-11-12 16:01:19

+0

您是否檢查了事件日誌?服務器應用程序不可用錯誤通常會導致寫入事件條目。 – 2010-11-13 03:10:45

0

從ASP.NET 2.0開始,正確的方法,以確保用戶帳戶具有正確的權限運行的工作進程身份運行此命令:

 
aspnet_regiis -ga [account] 

您需要運行相匹配的ASP.NET版本aspnet_regiis命令您計劃運行:

ASP.NET 2.0 -

 
%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ga [account] 

ASP.NET 4.0 -

 
%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ga [account]