Vb.net 运行应用程序时System.Runtime.InteropServices.COMException异常

Vb.net 运行应用程序时System.Runtime.InteropServices.COMException异常,vb.net,winforms,exception,dll,Vb.net,Winforms,Exception,Dll,我正在运行一个vb.net应用程序,遇到了如下异常。我想缺少一个名为AxMSForms.dll的com库。我从哪里得到的?有什么想法吗 异常类型=System.Runtime.InteropServices.COMException消息=未注册的类(来自HRESULT的异常:0x80040154(REGDB_E_CLASSNOTREG))源=System.Windows.Forms 堆栈跟踪如下 -------------------位于System.Windows.Forms.AxHost.C

我正在运行一个vb.net应用程序,遇到了如下异常。我想缺少一个名为AxMSForms.dll的com库。我从哪里得到的?有什么想法吗

异常类型=System.Runtime.InteropServices.COMException消息=未注册的类(来自HRESULT的异常:0x80040154(REGDB_E_CLASSNOTREG))源=System.Windows.Forms 堆栈跟踪如下 -------------------位于System.Windows.Forms.AxHost.CreateWithLicense(字符串许可证,Guid clsid)的System.Windows.Forms.AxHost.CreateWithLicense(字符串许可证,Guid clsid)的System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)的System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)中位于System.Windows.Forms.AxHost.GetOcxCreate()处System.Windows.Forms.AxHost.TransitionUpTo(Int32状态)处System.Windows.Forms.AxHost.CreateHandle()处System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)处System.Windows.Forms.AxHost.EndInit()处在MyApp.frmwirespaccingdata.InitializeComponent()在MyApp.frmwirespaccingdata.ctor(测量、电缆产品、IGraphPaneManager图形面板管理器、字符串打印机名称、字符串标题)在MyApp.frmCableSpec.doMeasurement()在MyApp.frmCableSpec.cmdMeasure\u单击(对象发送器、事件参数e)


WinForm上似乎有一个ActiveX控件未在运行应用程序的计算机上注册。@jmchiliney如何注册该控件?我发现Activex组件是Interop.MSForms(Microsoft Forms 2.0对象库)。我怎么能登记呢?我有那个库的动态链接库。那有帮助吗?你为什么要用它?你需要它吗?我不是100%确定它是什么,但我有一种感觉,它的设计目的是帮助分阶段将应用程序从VB6迁移到VB.NET。如果是这样的话,那么您应该尽快消除它。我想这就是我所想的,但是描述似乎表明它是针对VB6中的.NET的,而不是相反。如果这是您正在使用的,那么您可能需要将其安装在目标计算机上