vb.net在部署的应用程序上崩溃

时间:2013-01-17 18:30:38

标签: vb.net

我有一个vb.net视频应用程序,我已经使用点击一次部署到Windows 7机器上。它在启动时因未处理的异常而崩溃,我无法弄清楚它试图做什么。它适用于其他已部署的计算机。

以下是跟踪,我希望有人可以帮我确定要查找的内容。我只能看到InteropServices(Interop.MSCommLib.DLL)中没有注册异常的类,但不知道如何解决它。

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

    ************** Exception Text ************** System.InvalidOperationException: An error occurred creating the
    form. See Exception.InnerException for details.     The error is:
    Class not registered (Exception from HRESULT: 0x80040154
    (REGDB_E_CLASSNOTREG))
    ---> System.Runtime.InteropServices.COMException:   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.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
    Player.Apex232.InitializeComponent()    at Player.Apex232..ctor()   
    --- End of inner exception stack trace ---    at Player.My.MyProject.MyForms.Create__Instance__[T](T Instance)    at
    Player.My.MyProject.MyForms.get_Apex232()    at
    Player.main.tmrInitialize_Tick(Object sender, EventArgs e)    at
    System.Windows.Forms.Timer.OnTick(EventArgs e)    at
    System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)   
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
    msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies ************** mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.296 (RTMGDR.030319-2900)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ---------------------------------------- System
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1001 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ---------------------------------------- Player
        Assembly Version: 1.0.4765.16371
        Win32 Version: 1.0.4765.16371
        CodeBase: file:///C:/Users/1-Admin/AppData/Local/Apps/2.0/KNRBJ7QO.TBP/7LLH8JQX.G77/play..tion_0000000000000000_0002.0000_e02e247c5bbc65ce/Player.exe
    ---------------------------------------- Microsoft.VisualBasic
        Assembly Version: 10.0.0.0
        Win32 Version: 10.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ---------------------------------------- System.Core
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.233 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ---------------------------------------- System.Windows.Forms
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1001 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ---------------------------------------- System.Drawing
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1001 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ---------------------------------------- System.Runtime.Remoting
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ---------------------------------------- Microsoft.VisualBasic.Compatibility
        Assembly Version: 10.0.0.0
        Win32 Version: 10.0.30319.1
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic.Compatibility/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.Compatibility.dll
    ---------------------------------------- System.Data
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.237 (RTMGDR.030319-2300)
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    ---------------------------------------- System.Xml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.233 built by: RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ---------------------------------------- MySql.Data
        Assembly Version: 6.4.4.0
        Win32 Version: 6.4.4.0
        CodeBase: file:///C:/Users/1-Admin/AppData/Local/Apps/2.0/KNRBJ7QO.TBP/7LLH8JQX.G77/play..tion_0000000000000000_0002.0000_e02e247c5bbc65ce/MySql.Data.DLL
    ---------------------------------------- System.Transactions
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
    ---------------------------------------- AxInterop.WMPLib
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Users/1-Admin/AppData/Local/Apps/2.0/KNRBJ7QO.TBP/7LLH8JQX.G77/play..tion_0000000000000000_0002.0000_e02e247c5bbc65ce/AxInterop.WMPLib.DLL
    ---------------------------------------- Interop.WMPLib
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Users/1-Admin/AppData/Local/Apps/2.0/KNRBJ7QO.TBP/7LLH8JQX.G77/play..tion_0000000000000000_0002.0000_e02e247c5bbc65ce/Interop.WMPLib.DLL
    ---------------------------------------- System.Configuration
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ---------------------------------------- System.Deployment
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
    ---------------------------------------- Microsoft.VisualBasic.PowerPacks.Vs
        Assembly Version: 10.0.0.0
        Win32 Version: 10.0.20911.1
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.PowerPacks.Vs/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.PowerPacks.Vs.dll
    ---------------------------------------- Accessibility
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 built by: RTMRel
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    ---------------------------------------- System.EnterpriseServices
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ---------------------------------------- AxInterop.MSCommLib
        Assembly Version: 1.1.0.0
        Win32 Version: 1.1.0.0
        CodeBase: file:///C:/Users/1-Admin/AppData/Local/Apps/2.0/KNRBJ7QO.TBP/7LLH8JQX.G77/play..tion_0000000000000000_0002.0000_e02e247c5bbc65ce/AxInterop.MSCommLib.DLL
    ---------------------------------------- Interop.MSCommLib
        Assembly Version: 1.1.0.0
        Win32 Version: 1.1.0.0
        CodeBase: file:///C:/Users/1-Admin/AppData/Local/Apps/2.0/KNRBJ7QO.TBP/7LLH8JQX.G77/play..tion_0000000000000000_0002.0000_e02e247c5bbc65ce/Interop.MSCommLib.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.

1 个答案:

答案 0 :(得分:1)

您正在应用程序中使用ActiveX控件,从一些视频播放器控件或串行端口COM对象的名称判断,这些名称未在您部署ClickOnce应用程序的计算机上注册。您的所有ClickOnce应用程序都包含ActiveX控件周围的托管包装器,而不是ActiveX控件本身。

使用ClickOnce安装ActiveX控件并不是非常简单。您可以使用ClickOnce bootstrap安装ActiveX控件,或者根本不使用ClickOnce并使用安装ActiveX控件的MSI。

相关问题