在点网络dll中使用服务组件COM +提供UnauthorizedAccessException [英] Using Serviced Component COM+ in dot net dll giving UnauthorizedAccessException

查看:50
本文介绍了在点网络dll中使用服务组件COM +提供UnauthorizedAccessException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我在这里遇到了一些问题.我的客户给了我一个MSI,它是COM +组件的代理.当我安装该MSI时,COM +组件在我的DCOMCONFIG中注册,激活设置为服务器应用程序".服务器已经 在远程服务器名称"字段中指定. ping此服务器时,我得到答复,这意味着我可以连接到它.

 I have got into some issue here. My client gave me an MSI which is a proxy of the COM+ component. When I install this MSI the COM+ component is registerd in my DCOMCONFIG with the Activation Setting as "Server application". The server is already specified in the field "Remote Server Name".  When I ping to this server I am getting reply which means I can connect to it.

但是当我通过点网代码创建此组件的新实例时,我会收到"UnauthorizedAccessException被捕获".

But When I create a new instance of this component through my dot net code I get "UnauthorizedAccessException was caught".

显示错误消息

"由于以下错误,检索具有CLSID {AAAAAAAA-XXXX-XXXX-XXXX-XXXXXXXXXXXX}的组件的COm类工厂失败:80070005.

"retrieving the COm class factory for component with CLSID {AAAAAAAA-XXXX-XXXX-XXXX-XXXXXXXXXXXX} failed due to the following error: 80070005.

我尝试将允许该dll的文件夹的权限也授予ASPNET帐户,检查web.config文件并设置Impersonate = true.还有什么可能是造成这种情况的原因.

I tried giving permission to the folder where this dll is placed also to the ASPNET account, check web.config file and set Impersonate = true . What else could be the possible cause of this.

任何帮助将不胜感激.

谢谢.

推荐答案

重新配置DCOM可以解决您的问题.请检查此内容以获取完整的帖子:

Reconfiguring DCOM can resolve your issue. Please check this for complete post:

http://blog.crowe.co.nz/archive/2006/03 /02/589.aspx


这篇关于在点网络dll中使用服务组件COM +提供UnauthorizedAccessException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆