Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
IIS托管的WCF在域帐户下运行时引发异常_Wcf_Iis_Iis 7_Windows 2003 Webserver - Fatal编程技术网

IIS托管的WCF在域帐户下运行时引发异常

IIS托管的WCF在域帐户下运行时引发异常,wcf,iis,iis-7,windows-2003-webserver,Wcf,Iis,Iis 7,Windows 2003 Webserver,对我的问题的解释有点太冗长了,但还是这样 我有许多WCF服务,其中大多数是在自定义端口上的windows服务中自托管的 对于那些自托管的用户,我切换了运行服务的身份,并得到以下错误 HTTP could not register URL http://+:5731/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for

对我的问题的解释有点太冗长了,但还是这样

我有许多WCF服务,其中大多数是在自定义端口上的windows服务中自托管的

对于那些自托管的用户,我切换了运行服务的身份,并得到以下错误

HTTP could not register URL http://+:5731/. 
Your process does not have access rights to this namespace 
(see http://go.microsoft.com/fwlink/?LinkId=70353 for details).  :     
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
为了在Windows2003下解决这个问题,我使用httpcfg为该url添加了ACL

URL : http://+:5731/
ACL : D:(A;;GX;;;S-1-5-21-1644697732-2861104425-3354422928-30323)
在那之后,自我主持的工作很好

但托管的IIS不是。在我更改了应用程序池标识后,它将抛出

ServerTooBusyException: The HTTP service located at 
   http://127.0.0.1/Service.svc is too busy
我仔细检查了为应用程序池标识输入的密码是否正确,以防使用httpcfg添加了权限,这不一定是正确的

URL : http://+:80/
ACL : D:(A;;GX;;;S-1-5-21-1644697732-2861104425-3354422928-30323)
我仍然得到
服务器ToobusyException


为了使IIS托管服务在特定域用户下工作,还应该重新配置什么?

我能够解决这个问题,将域用户添加到本地管理组,并为w3svc执行网络停止和网络启动,这是极端的。正在为域用户查找更合适的权限集