部署C#应用程序时,REGDB E CLASSNOTREG HRESULT:0X80040154

部署C#应用程序时,REGDB E CLASSNOTREG HRESULT:0X80040154,c#,dll,deployment,C#,Dll,Deployment,晚上好,天才们 我非常需要帮助。 我有一个用C语言创建的程序,它在Visual Studio 2010(平台目标x86)调试中运行良好。它的设置在我的电脑上也很好 尽管它使用第三方dll(GrFingerX.dll),这是一个.COM组件 当我试图将其部署到其他PC上时,问题就出现了,安装程序会给出一个 `Module C:\ProgramFiles\FAF\GrFingerX.dll failed to register HRESULT -2147024770` 安装时 另外,如果我选择忽

晚上好,天才们

我非常需要帮助。 我有一个用C语言创建的程序,它在Visual Studio 2010(平台目标x86)调试中运行良好。它的设置在我的电脑上也很好

尽管它使用第三方dll(GrFingerX.dll),这是一个.COM组件

当我试图将其部署到其他PC上时,问题就出现了,安装程序会给出一个

`Module C:\ProgramFiles\FAF\GrFingerX.dll failed to register HRESULT -2147024770` 
安装时

另外,如果我选择忽略此设置并继续安装,则它会安装,但在打开时会出现此错误

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
   at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
   at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
   at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstance()
   at System.Windows.Forms.AxHost.GetOcxCreate()
   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   at System.Windows.Forms.AxHost.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.AxHost.EndInit()
   at FinalYProj.Main_page.InitializeComponent()
   at FinalYProj.Main_page..ctor(String User)
   at FinalYProj.logger1.btnLogin_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
FinalYProj
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/LIUSAKOMS/AppData/Local/Apps/2.0/8YOD4B7L.5GO/CPGN14Z8.OJK/fina..tion_fc28abaf1cb21645_0001.0000_e1dc63e642dc1cef/FinalYProj.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Data.DataSetExtensions
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.4926 built by: NetFXw7
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Data.DataSetExtensions/3.5.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.4926 built by: NetFXw7
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
AxInterop.GrFingerXLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/LIUSAKOMS/AppData/Local/Apps/2.0/8YOD4B7L.5GO/CPGN14Z8.OJK/fina..tion_fc28abaf1cb21645_0001.0000_e1dc63e642dc1cef/AxInterop.GrFingerXLib.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
有关调用的详细信息,请参阅此消息的结尾
即时(JIT)调试,而不是此对话框。
**************例外文本**************
System.Runtime.InteropServices.COMException(0x80040154):未注册类(HRESULT的异常:0x80040154(REGDB_E_CLASSNOTREG))
在System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid和clsid、对象punkOuter、Int32上下文、Guid和iid)
位于System.Windows.Forms.AxHost.CreateWithOutlineCense(Guid clsid)
位于System.Windows.Forms.AxHost.CreateWithLicense(字符串许可证,Guid clsid)
位于System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
在System.Windows.Forms.AxHost.CreateInstance()中
在System.Windows.Forms.AxHost.GetOcxCreate()中
位于System.Windows.Forms.AxHost.TransitionUpTo(Int32状态)
在System.Windows.Forms.AxHost.CreateHandle()中
位于System.Windows.Forms.Control.CreateControl(布尔值不可修改)
位于System.Windows.Forms.Control.CreateControl(布尔值不可修改)
在System.Windows.Forms.AxHost.EndInit()中
在FinalYProj.Main_page.InitializeComponent()处
在FinalYProj.Main\u页..ctor(字符串用户)
在FinalYProj.logger1.btnLogin_单击(对象发送方,事件参数e)
在System.Windows.Forms.Control.OnClick(EventArgs e)中
在System.Windows.Forms.Button.OnClick(EventArgs e)中
在System.Windows.Forms.Button.OnMouseUp(MouseEventArgs-mevent)上
在System.Windows.Forms.Control.WmMouseUp(Message&m、MouseButtons按钮、Int32单击)
位于System.Windows.Forms.Control.WndProc(Message&m)
位于System.Windows.Forms.ButtonBase.WndProc(Message&m)
在System.Windows.Forms.Button.WndProc(Message&m)中
在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)中
在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)中
在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)中
**************加载的程序集**************
mscorlib
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
最终项目
程序集版本:1.0.0.0
Win32版本:1.0.0.0
代码库:file:///C:/Users/LIUSAKOMS/AppData/Local/Apps/2.0/8YOD4B7L.5GO/CPGN14Z8.OJK/fina..tion_fc28abaf1cb21645_0001.0000_e1dc63e642dc1cef/FinalYProj.exe
----------------------------------------
System.Windows.Forms
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
系统
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
系统图
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
系统数据
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
命名空间
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
系统配置
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
系统.交易
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
系统企业服务
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Data.DataSetExtensions
程序集版本:3.5.0.0
Win32版本:3.5.30729.4926生成者:NetFXw7
代码库:file:///C:/Windows/assembly/GAC_MSIL/System.Data.DataSetExtensions/3.5.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
----------------------------------------
系统核心
程序集版本:3.5.0.0
Win32版本:3.5.30729.4926生成者:NetFXw7
代码库:file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
AxInterop.GrFingerXLib
程序集版本:1.0.0.0
Win32版本:1.0.0.0
代码库:file:///C:/Users/LIUSAKOMS/AppData/Local/Apps/2.0/8YOD4B7L.5GO/CPGN14Z8.OJK/fina..tion_fc28abaf1cb21645_0001.0000_e1dc63e642dc1cef/AxInterop.GrFingerXLib.DLL
----------------------------------------
**************JIT调试**************
要启用即时(JIT)调试,请为