none
Compiler Fehlermeldung auf Win2008 64-Bit RRS feed

  • Frage

  • Hallo Forum,
    ich habe eine Anweundung mit .NET 3.5 auf einem WinServer 2003 getestet. Es lief problemlos ab.
    Wenn ich die Anwendung auf einem WinServer 2008 64-bit (.NET 3.5) starten will bekomme ich diese (sehr lange..) Fehlermeldung:

    See the end of this message for details on invoking 
    
    just-in-time (JIT) debugging instead of this dialog box.
    
    
    
    ************** Exception Text **************
    
    System.NullReferenceException: Object reference not set to an instance of an object.
    
     at MySQL1.SQLInstallation.RegistryCheckSQL()
    
     at MySQL1.MainForm.btnCreateIni_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.4206 (VistaSP2GDR.050727-4200)
    
     CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    
    ----------------------------------------
    
    UnattendedSQLInstall_V1
    
     Assembly Version: 1.0.0.0
    
     Win32 Version: 1.0.0.0
    
     CodeBase: file:///C:/Users/rootcdb/Desktop/UnattendedSQLInstall_V1.exe
    
    ----------------------------------------
    
    System.Windows.Forms
    
     Assembly Version: 2.0.0.0
    
     Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    
     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.4205 (VistaSP2GDR.050727-4200)
    
     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.4016 (NetFxQFE.050727-4000)
    
     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    
    ----------------------------------------
    
    MySql.Data
    
     Assembly Version: 6.2.4.0
    
     Win32 Version: 6.2.4.0
    
     CodeBase: file:///C:/Users/rootcdb/Desktop/MySql.Data.DLL
    
    ----------------------------------------
    
    System.Data
    
     Assembly Version: 2.0.0.0
    
     Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    
     CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    
    ----------------------------------------
    
    System.Transactions
    
     Assembly Version: 2.0.0.0
    
     Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    
     CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
    
    ----------------------------------------
    
    System.Configuration
    
     Assembly Version: 2.0.0.0
    
     Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    
     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    
    ----------------------------------------
    
    System.Xml
    
     Assembly Version: 2.0.0.0
    
     Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    
     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    
    ----------------------------------------
    
    System.EnterpriseServices
    
     Assembly Version: 2.0.0.0
    
     Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    
     CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    
    ----------------------------------------
    
    System.Core
    
     Assembly Version: 3.5.0.0
    
     Win32 Version: 3.5.30729.1 built by: SP
    
     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
    
    ----------------------------------------
    
    System.DirectoryServices.AccountManagement
    
     Assembly Version: 3.5.0.0
    
     Win32 Version: 3.5.30729.1 built by: SP
    
     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.DirectoryServices.AccountManagement/3.5.0.0__b77a5c561934e089/System.DirectoryServices.AccountManagement.dll
    
    ----------------------------------------
    
    System.DirectoryServices
    
     Assembly Version: 2.0.0.0
    
     Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    
     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.DirectoryServices/2.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.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.
    
    
    
    
    
    
    Ich verstehe die Meldung so, dass Variablen/Classen auf null gesetzt wurden, aber warum lief das auf dem Win2003 und will nicht auf Win2008? Eine Compiler-Einstellung?
    Danke für Eure Hilfe
    P.
    Donnerstag, 12. Mai 2011 08:44

Antworten

  • Hi,

    um erstmal zu testen, ob es am Unterschied x86 zu X64 liegt, könntest Du die Assembly über die Projekteinstellungen -> Zielframework explizit als x86 erzeugen lassen. Wenns dann läuft, liegt es wohl an etwas, was unter x64 so nicht läuft. Ggfs. "MySQL1.SQLInstallation", evtl. gibts das nur für 32 Bit.

    So oder so wirst Du aber nicht drum rum kommen, deine Anwendung auch mal unter x64 Systemen zu debuggen.

     


    Gruß, Stefan
    Microsoft MVP - Visual Developer ASP/ASP.NET
    http://www.asp-solutions.de/ - Consulting, Development
    http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community

    • Als Antwort markiert Purclot Donnerstag, 12. Mai 2011 11:08
    Donnerstag, 12. Mai 2011 09:55
    Moderator
  • hi,

    weil die Methode MySQL1.SQLInstallation.RegistryCheckSQL() wohl ins Leere läuft. Aufgrund des Namens selbiger: Sind denn die korrekten 64-bit und 32-bit Treiber installiert? Ist die Methode von dir und sicher bezüglich der 64bit/32bit Unterschiede?


    Microsoft MVP Office Access
    https://mvp.support.microsoft.com/profile/Stefan.Hoffmann
    • Als Antwort markiert Purclot Donnerstag, 12. Mai 2011 11:08
    Donnerstag, 12. Mai 2011 09:59

Alle Antworten

  • Hi,

    um erstmal zu testen, ob es am Unterschied x86 zu X64 liegt, könntest Du die Assembly über die Projekteinstellungen -> Zielframework explizit als x86 erzeugen lassen. Wenns dann läuft, liegt es wohl an etwas, was unter x64 so nicht läuft. Ggfs. "MySQL1.SQLInstallation", evtl. gibts das nur für 32 Bit.

    So oder so wirst Du aber nicht drum rum kommen, deine Anwendung auch mal unter x64 Systemen zu debuggen.

     


    Gruß, Stefan
    Microsoft MVP - Visual Developer ASP/ASP.NET
    http://www.asp-solutions.de/ - Consulting, Development
    http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community

    • Als Antwort markiert Purclot Donnerstag, 12. Mai 2011 11:08
    Donnerstag, 12. Mai 2011 09:55
    Moderator
  • hi,

    weil die Methode MySQL1.SQLInstallation.RegistryCheckSQL() wohl ins Leere läuft. Aufgrund des Namens selbiger: Sind denn die korrekten 64-bit und 32-bit Treiber installiert? Ist die Methode von dir und sicher bezüglich der 64bit/32bit Unterschiede?


    Microsoft MVP Office Access
    https://mvp.support.microsoft.com/profile/Stefan.Hoffmann
    • Als Antwort markiert Purclot Donnerstag, 12. Mai 2011 11:08
    Donnerstag, 12. Mai 2011 09:59
  • Hallo Stefan, hallo Stefan ( ;-) )

    vielen Dank. Ja, es fehlte ein "catch" wenn System=64 bit, der Zugriff auf die Registry verlief im Sande...
    Hmm, manchmal sieht man von lauten Bäumen keinen Wald mehr...

    Gruß P.

     

     

    Donnerstag, 12. Mai 2011 11:10