突然翻到以前(2015.12)发的帖子咯:OPC Scout V10通过以太网连接 840D SL,已经进行过本地安全策略和DCOM的设置,出现错误信息如下:
Find servers error: Unable to cast COM object of type "System._ComObject" to interface type "OpcRcw.Comn.IOPCServerList2".
This operation failed because the QueryInterface call on the COM component for the interface with IID '{9DD0B56C-AD9E-43EE-8305-487F3188BF7A}'failed due to the following error:
拒绝访问。(Exception from HRESULT:0x80070005(E_ACCESSDENIED))
当自己编写程序测试的时候,使用VB通过Automantion Interface 连接出现错误‘70’:拒绝访问。使用VC++编程通过Custom接口连接,创建OPCServerlist的实例时成功,但是在获取OPC.SINUMERIK.Machineswitch的CLSID时失败了。
ps:已经进行过DCOM和本地安全策略设置(参考
http://www.ad.siemens.com.cn/download/OnlineReading.aspx?DocId=3105
设置的),防火墙关闭了。
哪位大神帮忙分析分析,不熟悉编程可以直接看OPC Scout V10的错误信息,毕竟是官方的客户端。后面自己写程序的错误是帮助分析的。