ThinkGeo.com    |     Documentation    |     Premium Support

Problem publishing to x64 server

i made a very simple windows application that just displays a map, using a 32-bit PC., it runs well on this PC. Then i install it to a 64-bit PC to test, but  error occur:


Could not load file or assembly 'DesktopEdition, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207' or one of its dependencies. An attempt was made to load a program with an incorrect format.


Why is that so? and how to correct it?


Ric



Ric,


 The current Desktop Edition (3.0.131) is a 32 bit version, you need to change the solution platform on your application to “x86” if you want to make it running on a 64bit system using 32bit mode.




The upcoming version though will support 64bit edition intrinsically, you can just leave the platform of the application to “Any CPU” and it will use the Desktop Edition as a pure 64 bit dll. That version will be released around 22rd this month.


 Any queries just let us know.
 
Ben

I changed to x86, and this solved my problem. Thanks Ben. 
  
 Ric

You are welcome, Ric.

Ben,  
  
 Is only the DesktopEdition.dll a full 64-bit dll, or will the NetTopology (projection) and raster dlls have full 64-bit support?

Ben,  
  
 Is only the DesktopEdition.dll a full 64-bit dll, or will the NetTopology (projection) and raster dlls have full 64-bit support?

Steve,  
  
 We will also have projection/raster dlls work on 64-bit machine. In fact, we made 2 editions(X86 and X64) of those dlls and will deploy both of them on the target machine, and select the right edition in runtime according to the system. 
  
 Thanks, 
  
 Ben