DCOM CoCreateInstanceEx E_ACCESSDENIED
我使用 2 台 PC,均运行 Windows XP。两者都使用其 DCOM 接口注册了相同的应用程序。现在我正在尝试从一台计算机在另一台计算机上启动该程序。
首先我调用了CoInitializeSecurity,然后调用了CoCreateInstanceEx,但结果是E_ACCESSDENIED。
我还运行了 dcomcnfg,以允许任何人访问,但它没有帮助。
I am working with 2 PCs, both running both running Windows XP. Both have the same application registered with its DCOM interface. Now i'm trying to start the program from one computer on the other.
First I called CoInitializeSecurity, after that CoCreateInstanceEx, but the result is a E_ACCESSDENIED.
I did also run dcomcnfg, to give anyone access, but it didn't help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
访问是 dcom 下的一个选择...您还需要启动和激活设置...下一步我会点击...
access is ONE choice under dcom... you also need Launch and Activation settings... I'd hit that next...
您必须显式添加用户并授予他所有权限。之后就可以了。
You have to add the user explicitly and give him all permissions. After that it works.