繁体   English   中英

将FsrmQuotaManager与WCF服务一起使用

[英]Using FsrmQuotaManager with a WCF service

我正在使用在IIS 7.5(W2k8 R2)上运行的WCF服务。 我使用此服务来获取有关同一IIS上指定网站空间的配额信息。

因此,我确实将WCF服务用作服务器,将本地Web应用程序用作客户端。 客户端现在向服务器询问网站文件夹的配额。 为此,服务器应使用FsrmQuotaManager 但是,当服务引用配额管理器时,我得到一个0x80070005 (Access denied) 该Web服务通过ApplicationPoolIdentity在其自己的AppPool中运行。

我始终在事件日志中看到DistributedCOM错误(10016),说The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {90DCAB7F-347C-4BFC-B543-540326305FBE} and APPID {FA3FC5CF-0304-4CAC-99F0-032AC2B15D1E} to the user MYDOMAIN\\someUsername SID (S-1-5-21-1477432904-898564541-3754644009-3102) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool. The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {90DCAB7F-347C-4BFC-B543-540326305FBE} and APPID {FA3FC5CF-0304-4CAC-99F0-032AC2B15D1E} to the user MYDOMAIN\\someUsername SID (S-1-5-21-1477432904-898564541-3754644009-3102) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool. 因此,我已经设法在ComponentServices中为该用户(或者更好的是该用户所在的组)添加权限,就像我在搜索Internet时经常阅读的那样。 现在,我不再在事件查看器中收到该错误,但是当我在服务代码中引用FsrmQuotaManager ,仍然遇到异常。

有人对此有任何线索吗? 我确实坚持了好几天,而且我的想法已经用完了。 使用Process Monitor无济于事。

我们终于解决了。
我们必须模拟使用本地管理员帐户创建FsrmQuotaManager对象。 使用此方法,我们还可以删除以前在ComponentServices中添加的权限。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM