Gmap.net.core.dll on WinServer2008

Topics: General
Dec 6, 2010 at 11:10 AM

Hallo

I have implemented in a my windows form application Gmap and it's work fine on Win Xp and Vista but today i have try to install on windows Server 2008 foundation and when i call Gmap i receive this error:

Le informazioni su come richiamare il debug JIT (Just-In-Time) anziché questa finestra
sono riportate in fondo al messaggio.

************** Testo dell'eccezione **************
System.BadImageFormatException: Impossibile caricare il file o l'assembly 'GMap.NET.Core, Version=1.5.1.3, Culture=neutral, PublicKeyToken=b85b9027b614afef' o una delle relative dipendenze. Tentativo di caricare un programma con un formato non corretto.
Nome file: 'GMap.NET.Core, Version=1.5.1.3, Culture=neutral, PublicKeyToken=b85b9027b614afef'
   in GeLog.FormIndirizzoHome.BtGeoRef_Click(Object sender, EventArgs e)
   in System.Windows.Forms.Control.OnClick(EventArgs e)
   in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.ButtonBase.WndProc(Message& m)
   in System.Windows.Forms.Button.WndProc(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

AVV: la registrazione dell'associazione di assembly è disattivata.
Per attivare la registrazione degli errori di associazione di assembly, impostare il valore del Registro di sistema [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) su 1.
Nota: alcune penalità di prestazione sono associate alla registrazione degli errori di associazione di assembly.
Per disattivare la funzionalità, rimuovere il valore del Registro di sistema [HKLM\Software\Microsoft\Fusion!EnableLog].

 

************** Assembly caricati **************
mscorlib
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
GeLog
    Versione assembly: 1.0.2.2
    Versione Win32: 1.0.2.2
    Base di codice: file:///C:/GeLog/GeLog.exe
----------------------------------------
Microsoft.VisualBasic
    Versione assembly: 8.0.0.0
    Versione Win32: 8.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Data
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms.resources
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.Transactions
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Configuration
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
mscorlib.resources
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
System.Data.resources
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Data.resources/2.0.0.0_it_b77a5c561934e089/System.Data.resources.dll
----------------------------------------
Microsoft.VisualBasic.resources
    Versione assembly: 8.0.0.0
    Versione Win32: 8.0.50727.4927 (NetFXspW7.050727-4900)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/8.0.0.0_it_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll
----------------------------------------

************** Debug JIT **************
Per attivare il debug JIT, è necessario impostare il valore
jitDebugging nella sezione system.windows.forms del file di configurazione
dell'applicazione o del computer (machine.config).
L'applicazione inoltre deve essere compilata con il debug
attivato.

Ad esempio:

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

Quando il debug JIT è attivato, tutte le eccezioni non gestite
vengono inviate al debugger JIT registrato nel computer,
anziché essere gestite da questa finestra di dialogo.

 can you give some help?

Regards

Guido

Coordinator
Dec 6, 2010 at 5:41 PM

using x86 build?

Dec 7, 2010 at 4:59 AM
Edited Dec 7, 2010 at 5:13 AM

Visual studio 2008, VB,  Any CPU, framework 3.5

And i receive the same error if i build in X64 mode

Thanks

Dec 7, 2010 at 1:12 PM
Edited Dec 7, 2010 at 2:06 PM

I have tried to compile with X64 mode and it's ok for the error but the result of the map ia a blue screen with

excpetion: of "SingletonCreator"

I have downloaded the new version an i have create a simple application with a translation of your demo version from C to Vb.net, but the results is the same on X86 mode and X64 mode, the strange is that your demo version run correctly on X86 an X64.

Thanks

 

Coordinator
Dec 7, 2010 at 2:05 PM

try x86

Dec 7, 2010 at 2:18 PM

I have tried but return the same first error

Thanks

Coordinator
Dec 7, 2010 at 4:06 PM

hm...

Dec 7, 2010 at 4:29 PM

If you want i can send to you the small application with translation C to VB.NET of your demo version

 

Dec 8, 2010 at 7:19 AM

Finally i have found the solution:

Gretamap works on X64 and X86 only if is builded in X86 mode

But my solution must be builded in AnyCPU mode because 'Microsoft.ACE.OLEDB.12.0' don't work on X64 if is builded in in X86 mode

So i must have two application 'Myapplication' and 'Greatmap' and call this externally.

Is not a good solution but if it's work, OK!  :(

Thanks for your patience and support.

Coordinator
Jul 1, 2011 at 9:53 PM

does it work now?