2010-11-11 44 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]