成功后,DCOM调用方法返回E_ACCESSDANIED常规访问被拒绝错误CoCreateInstanceEx Windows 10 [英] DCOM calls to methods returns E_ACCESSDANIED general access denied error after successfull CoCreateInstanceEx Windows 10
问题描述
我正在创建一个简单的客户端,通过虚拟机上的DCOM连接到OPC服务器。我在Windows 7机器上测试了相同的代码并且它工作正常,但在将编码移动到Windows 10后它停止工作(包含
DCOM服务器的虚拟机是相同的)。关键是我能够实例化COM对象,但我无法调用它的任何方法,因为我收到了E_ACCESSDENIED结果。以下是这些步骤:
解决方案
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:
|