程序加入指纹识别功能(中控5.0),但是在未安装驱动的机器上运行就会出现以下错误,在不安装驱动的情况下怎么解决啊?求大神支招。
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): 没有注册类别 (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.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 tc_gcm.UI.FrontControl.UcMembershipCard.InitializeComponent() in E:\2015-09-25-2256办卡刷卡指纹事件优化\tc.gcm\tc_gcm.UI\FrontControl\UcMembershipCard.Designer.cs:line 1343
at tc_gcm.UI.FrontControl.UcMembershipCard..ctor() in E:\2015-09-25-2256办卡刷卡指纹事件优化\tc.gcm\tc_gcm.UI\FrontControl\UcMembershipCard.cs:line 27
at tc_gcm.UI.FrontControl.ucmenbercontrol.InitializeComponent() in E:\2015-09-25-2256办卡刷卡指纹事件优化\tc.gcm\tc_gcm.UI\FrontControl\ucmenbercontrol.Designer.cs:line 36
at tc_gcm.UI.FrontControl.ucmenbercontrol..ctor() in E:\2015-09-25-2256办卡刷卡指纹事件优化\tc.gcm\tc_gcm.UI\FrontControl\ucmenbercontrol.cs:line 17
at tc_gcm.UI.FrontControl.frontList.InitializeComponent() in E:\2015-09-25-2256办卡刷卡指纹事件优化\tc.gcm\tc_gcm.UI\FrontControl\frontList.Designer.cs:line 43
at tc_gcm.UI.FrontControl.frontList..ctor() in E:\2015-09-25-2256办卡刷卡指纹事件优化\tc.gcm\tc_gcm.UI\FrontControl\frontList.cs:line 19
at tc_gcm.UI.MainForm.InitializeComponent() in E:\2015-09-25-2256办卡刷卡指纹事件优化\tc.gcm\tc_gcm.UI\MainForm.Designer.cs:line 65
at tc_gcm.UI.MainForm..ctor() in E:\2015-09-25-2256办卡刷卡指纹事件优化\tc.gcm\tc_gcm.UI\MainForm.cs:line 41
at tc_gcm.UI.Loginfrom.btnlogin_Click(Object sender, EventArgs e) in E:\2015-09-25-2256办卡刷卡指纹事件优化\tc.gcm\tc_gcm.UI\Loginfrom.cs:line 165
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.PerformClick()
at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
Gym
Assembly Version: 1.5.9.22
Win32 Version: 1.5.9.22
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
tc_gcm.Dog
Assembly Version: 1.5.7.23
Win32 Version: 1.5.7.23
tc_gcm.keys
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
tc_gcm.BLL
Assembly Version: 1.5.7.23
Win32 Version: 1.5.7.23
tc_gcm.Models
Assembly Version: 1.5.7.23
Win32 Version: 1.5.7.23
tc_gcm.DAL
Assembly Version: 1.5.7.23
Win32 Version: 1.5.7.23
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
tc_gcm.ColorPicker
Assembly Version: 1.5.7.23
Win32 Version: 1.5.7.23
System.Windows.Forms.DataVisualization
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5681
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
AForge.Controls
Assembly Version: 2.2.3.0
Win32 Version: 2.2.3.0
AxInterop.ZKFPEngXControl
Assembly Version: 3.8.0.0
Win32 Version: 3.8.0.0
AForge.Video
Assembly Version: 2.2.3.0
Win32 Version: 2.2.3.0
************** 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:
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.
com控件没有注册。你需要先注册控件。
如果你希望程序在没有这个控件的情况下也能运行,就在tc_gcm.UI.FrontControl.UcMembershipCard.InitializeComponent() 里面找到相关控件的初始化代码,剪切拷贝到构造函数中,用try catch包裹。