0

クリック ワンスを使用して Windows 7 マシンに展開した vb.net ビデオ アプリケーションがあります。未処理の例外で起動時にクラッシュし、何をしようとしているのかわかりません。他の展開されたコンピューターでは機能します。

以下はトレースです。誰かが何を探すべきかを判断するのを手伝ってくれることを願っています. 私が見ることができるのは、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.
4

1 に答える 1

1

ClickOnce アプリケーションを配置したマシンに登録されていないビデオ プレーヤー コントロールまたはシリアル ポート COM オブジェクトの名前から判断すると、アプリケーションで ActiveX コントロールを使用しています。ClickOnce アプリケーションに含まれているのは、ActiveX コントロール自体ではなく、ActiveX コントロールのマネージ ラッパーだけです。

ClickOnce を使用して ActiveX コントロールをインストールするのは、それほど簡単ではありません。ClickOnce を使用して ActiveX コントロールのインストールをブートストラップすることも、ClickOnce をまったく使用せずに ActiveX コントロールをインストールする MSI を使用することもできます。

于 2013-01-17T18:37:50.073 に答える