Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/266.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
DCOM C#应用程序类_C#_.net_Labview_Dcom - Fatal编程技术网

DCOM C#应用程序类

DCOM C#应用程序类,c#,.net,labview,dcom,C#,.net,Labview,Dcom,我试图通过DCOM组件控制LabView()。我使用的是c#(visualstudio),我的程序在某些计算机上可以运行,但也有一些在运行时生成异常。因此,问题似乎是配置问题。首先显示错误: The COM Classfactory for the component with the CLSID {9A872070-0A06-11D1-90B7-00A024CE2744} could not be called because of the following error: 80080005

我试图通过DCOM组件控制LabView()。我使用的是c#(visualstudio),我的程序在某些计算机上可以运行,但也有一些在运行时生成异常。因此,问题似乎是配置问题。首先显示错误:

The COM Classfactory for the component with the CLSID {9A872070-0A06-11D1-90B7-00A024CE2744} could not be called because of the following error: 80080005 (i translated the message, dont wonder!) Sometimes the error code is also 80070002 (Then the system can't find the file)
信息:CLSID 9A872070-0A06-11D1-90B7-00A024CE2744是LabVIEW DCOM组件,在LabVIEW设置过程中自动安装

还提供了错误的源代码行:

viServer = new ApplicationClass();



[FileNotFoundException: Die COM-Klassenfactory für die Komponente mit CLSID {9A872070-0A06-11D1-90B7-00A024CE2744} konnte aufgrund des folgenden Fehlers nicht abgerufen werden: 80070002 Das System kann die angegebene Datei nicht finden. (Ausnahme von HRESULT: 0x80070002).]
   iLabs.LabView.LV2013.LabViewInterface..ctor() in C:\ilabSDK\iLab_440_20141119\iLab_SA\dotNet\LabView\LabViewInterface\LabViewInterface.cs:135

[Exception: ERROR: Creating ApplicationClass LabVIEW 2013: ]
   iLabs.LabView.LV2013.LabViewInterface..ctor() in C:\ilabSDK\iLab_440_20141119\iLab_SA\dotNet\LabView\LabViewInterface\LabViewInterface.cs:143
   iLabs.LabServer.LabView.LabViewTaskFactory.CreateLabTask(LabAppInfo appInfo, Coupon expCoupon, Ticket expTicket) +647
   iLabs.LabServer.LabView.LVPortal.Page_Load(Object sender, EventArgs e) +821
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678
有人对这个话题有想法吗

祝你一切顺利,来自德国

切维约

注意:DCOM中是否存在32/64位问题? MMC comexp.msc/32如果我调用它,那么dcom组件的属性中有一个本地路径
MMC comexp.msc/64如果我调用此命令,则本地路径为空

显然,错误消息确实表明它找不到某个文件。为什么错误代码中没有提到文件名?

关闭后,我自己找到了解决方案

我在注册表中搜索CLSID,但输入的路径错误;)