首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >DCOM C# ApplicationClass

DCOM C# ApplicationClass
EN

Stack Overflow用户
提问于 2016-04-06 15:50:30
回答 2查看 169关注 0票数 0

我正在尝试通过DCOM组件控制LabView(http://www.ni.com/labview/)。我使用的是c# (Visual Studio),我的程序确实可以在一些计算机上运行,但也有一些在运行时会产生异常。所以这个问题似乎是一个配置问题。首先是显示的错误:

代码语言:javascript
复制
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期间会自动安装

还给出了错误的源代码行:

代码语言:javascript
复制
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的属性中就有一个本地路径。如果我调用它,那么本地路径就是空的!

EN

回答 2

Stack Overflow用户

发布于 2016-04-07 15:40:36

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

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

票数 0
EN

Stack Overflow用户

发布于 2016-04-07 05:18:14

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

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36444732

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档