none
Fehlermeldung "Unhandled exception ..." RRS feed

  • Frage

  • Hallo zusammen,

    habe mit VB2010-Express/Framework 4 unter XP erfolgreich ein Programm geschrieben. Wenn ich die EXE auf einem anderen PC (XP, Framework 4) starte, kommt die genannte Fehlermeldung. Im Detail endet sie mit:

    ************** 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.
    

    Nun habe ich den fehlenden Code in die machine.config wie folgt eingefügt:

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

    Mein Programm bleibt aber weiterhin an der gleichen Stelle stehen mit der gleichen Fehlermeldung. Was mache ich falsch?

    Danke fürs Nachdenken.

    Gruß Manfred

    Mittwoch, 1. Dezember 2010 13:18

Antworten

Alle Antworten

  • Hallo Manfred

    > Im Detail endet sie mit

    ich denke dies ist eher das uninteressantere Ende, zeige mal (exakt, per Copy&Paste) den Beginn (Exception).

    Generell bedeutet diese Meldung auch, dass du gründlicher Exception-handling (Try/Catch) betreiben solltest,
     ggf inkl globalere:

    Application.ThreadException-Ereignis
    http://msdn.microsoft.com/de-de/library/system.windows.forms.application.threadexception.aspx

    AppDomain.UnhandledException-Ereignis
    http://msdn.microsoft.com/de-de/library/system.appdomain.unhandledexception.aspx

    Mittwoch, 1. Dezember 2010 13:29
  • Hallo Thomas,

    danke für die schnelle Antwort. Hier die komplette Fehlermeldung:

    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 (0x800A03EC): Exception from HRESULT: 0x800A03EC
      at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
      at Microsoft.Office.Interop.Excel.Range.set_Value(Object RangeValueDataType, Object Param)
      at AccessTransferToExcel.frmMain.RegisterFüllenToolStripMenuItem1_Click(Object sender, EventArgs e)
      at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
      at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
      at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
      at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
      at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
      at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
      at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
      at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
      at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
      at System.Windows.Forms.Control.WndProc(Message& m)
      at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
      at System.Windows.Forms.ToolStrip.WndProc(Message& m)
      at System.Windows.Forms.ToolStripDropDown.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: 4.0.0.0
      Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
      CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    AccessTransferToExcel
      Assembly Version: 1.1.4.0
      Win32 Version: 1.1.4.0
      CodeBase: file://aptg602/ptg_strukturprogramm/00_PMO/30_Datenbank/Hilfsprogramme/AccessTransferToExcel_NICHT_BENUTZEN%20!!!.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
      Assembly Version: 4.0.0.0
      Win32 Version: 4.0.30319.1 built by: RTMRel
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Core
      Assembly Version: 4.0.0.0
      Win32 Version: 4.0.30319.1 built by: RTMRel
      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.1 built by: RTMRel
      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.1 built by: RTMRel
      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
    ----------------------------------------
    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.Xml
      Assembly Version: 4.0.0.0
      Win32 Version: 4.0.30319.1 built by: RTMRel
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    Microsoft.Office.Interop.Excel
      Assembly Version: 11.0.0.0
      Win32 Version: 11.0.8161
      CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.Office.Interop.Excel/11.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Excel.dll
    ----------------------------------------
    office
      Assembly Version: 11.0.0.0
      Win32 Version: 11.0.8161
      CodeBase: file:///C:/WINDOWS/assembly/GAC/office/11.0.0.0__71e9bce111e9429c/office.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.
    Gruß Manfred
    Mittwoch, 1. Dezember 2010 13:49
  • Manfred,
    offenbar machst du in deinem Code bei:
      AccessTransferToExcel.frmMain.RegisterFüllenToolStripMenuItem1_Click

    einen Zugriff auf Excel-Range:
      Microsoft.Office.Interop.Excel.Range.set_Value

    Einerseits sollte geprüft werden, ob beide PCs dieselbe Office/Excel-Version installiert haben (2003=v11?), inkl. offizielle/passende PIAs.

    Für alles darüber hinaus massgebende ist dann der Fehlercode 0x800A03EC  (und kommt von Excel/Interop, nicht von .NET selber!)

    Suche ähnliche Fälle:
    http://www.google.com/search?q=%2Brange+0x800A03EC+%2Bexcel

    uva verdächtig   (zB wenn du Office/Betriebssystem/.NET-Landessprachen mischst)  auch das 'Locale' Problem:
    http://blogs.msdn.com/b/eric_carter/archive/2005/06/15/429515.aspx
    http://www.made4dotnet.com/Default.aspx?tabid=141&aid=15
    http://www.google.com/search?q=%2B0x800A03EC+locale+excel

    Mittwoch, 1. Dezember 2010 14:15
  • Hallo Thomas,

    der Rechner mit der IDE hat Excel 2003 und 2007, der andere nur 2003. Werde Deine Links durchsehen. Vielen Dank für die Antwort.

    Gruß Manfred

    Mittwoch, 1. Dezember 2010 14:32
  • Rechner mit der IDE hat Excel 2003 und 2007, der andere nur 2003

    Manfred,
    mehrere Office-Versionen auf Entwicklerrechner sind aus vielen Gründen unsupported  (mind. via PIAs).

    Blog uva:
    http://blogs.msdn.com/b/andreww/archive/2007/06/08/why-is-vs-development-not-supported-with-multiple-versions-of-office.aspx

    Mittwoch, 1. Dezember 2010 14:39
  • Hallo Thomas, vielen Dank für Deinen Link zu diesem Artikel. Er hat mir Klarheit verschafft. Meine Frage ist somit beantwortet. Bis zum nächsten Mal. Gruß Manfred
    Donnerstag, 2. Dezember 2010 08:02