我试图连接自定义RTD客户端,用C#编写的第三方RTD服务器。
Type rtd;
Object rtdServer = null;
rtd = Type.GetTypeFromProgID("ProgId","WS001");
rtdServer = Activator.CreateInstance(rtd);其中WS001是我的机器名,ProgId是RTD服务器的名称。我犯了个错误,
错误: System.Runtime.InteropServices.COMException (0x800706BA):使用CLSID {xxxxxxxx xxxx xxxxxxxx}从机器"WS001“检索远程组件的COM类工厂,由于以下错误: 800706ba "WS001".`失败
我使用的是windows 7 64位操作系统。
发布于 2012-08-18 18:30:08
如果WS001是您的本地机器名,那么尝试另一个重载,它不使用机器名:
rtd = Type.GetTypeFromProgID("ProgId");https://stackoverflow.com/questions/9732337
复制相似问题