Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带有第三方RTD服务器的RTD客户端:C#_C#_Rtd - Fatal编程技术网

带有第三方RTD服务器的RTD客户端:C#

带有第三方RTD服务器的RTD客户端:C#,c#,rtd,C#,Rtd,我正在尝试将自定义RTD客户端(用C#编写)与第三方RTD服务器连接 Type rtd; Object rtdServer = null; rtd = Type.GetTypeFromProgID("ProgId","WS001"); rtdServer = Activator.CreateInstance(rtd); 其中,WS001是我的机器名,ProgId是RTD服务器的名称。我犯了这个错误 错误:System.Runtime.InteropServices.COMException(0

我正在尝试将自定义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的远程组件的COM类工厂 来自计算机“WS001”的{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}由于以下原因失败 导致以下错误:800706ba“WS001”`


我使用的是windows 7 64位操作系统。

如果
WS001
是您的本地计算机名,请尝试其他重载,该重载不采用计算机名:

rtd = Type.GetTypeFromProgID("ProgId");