我正在尝试通过DCOM组件控制LabView(http://www.ni.com/labview/)。我使用的是c# (Visual Studio),我的程序确实可以在一些计算机上运行,但也有一些在运行时会产生异常。所以这个问题似乎是一个配置问题。首先是显示的错误:
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有人对这个话题有什么想法吗?
所有来自德国的最好的
CheVeyo
附注:这可能是DCOM中的32/64位问题吗?MMC comexp.msc /32如果我调用它,那么在dcom组件MMC comexp.msc /64的属性中就有一个本地路径。如果我调用它,那么本地路径就是空的!
发布于 2016-04-07 15:40:36
关门后,我自己找到了解决方案...
我在注册表中搜索CLSID,但输入了错误的路径;)
发布于 2016-04-07 05:18:14
显然,错误消息确实显示找不到某个文件。为什么错误代码中没有提到文件名?
https://stackoverflow.com/questions/36444732
复制相似问题