成功后,DCOM调用方法返回E_ACCESSDANIED常规访问被拒绝错误CoCreateInstanceEx Windows 10 [英] DCOM calls to methods returns E_ACCESSDANIED general access denied error after successfull CoCreateInstanceEx Windows 10

查看:165
本文介绍了成功后,DCOM调用方法返回E_ACCESSDANIED常规访问被拒绝错误CoCreateInstanceEx Windows 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个简单的客户端,通过虚拟机上的DCOM连接到OPC服务器。我在Windows 7机器上测试了相同的代码并且它工作正常,但在将编码移动到Windows 10后它停止工作(包含
DCOM服务器的虚拟机是相同的)。关键是我能够实例化COM对象,但我无法调用它的任何方法,因为我收到了E_ACCESSDENIED结果。以下是这些步骤:







解决方案

您好daiiniel,


感谢您在此发帖。


根据错误消息(E_ACCESSDENIED),我认为用户的
特权导致此问题。 您是否尝试使用
RPC_C_AUTHN_LEVEL_NONE
属性。  如果成功,请增加用户的权限


如果数据在客户端和服务器中传递。也许你可以使用

RPC_C_AUTHN_LEVEL_PKT


仅在客户端与服务器建立关系时验证客户端的凭据。数据报传输总是使用
RPC_AUTHN_LEVEL_PKT 而不是


最好的问候,


Hart


I am making a simple client to connect to an OPC Server via DCOM on a virtual machine. I tested the same code on a Windows 7 Machine and it worked properly, but after moving the coding to Windows 10 it stopped working (the virtual machine containing the DCOM server is the same). The point is that I am able to instantiate a the COM object but I am not able to call any of its methods because I am receiving the E_ACCESSDENIED result. These are the steps:

解决方案

Hi daiiniel,

Thank you for posting here.

According to error message(E_ACCESSDENIED) ,I think that The user's privileges are causing this problem. Did you try to use the RPC_C_AUTHN_LEVEL_NONE propertyIf it succeeds, increase the user's privileges

If the data be passed within client and server. Maybe you can use the RPC_C_AUTHN_LEVEL_PKT

Authenticates the credentials of the client only when the client establishes a relationship with the server. Datagram transports always use RPC_AUTHN_LEVEL_PKT instead

Best Regards,

Hart


这篇关于成功后,DCOM调用方法返回E_ACCESSDANIED常规访问被拒绝错误CoCreateInstanceEx Windows 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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