This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, September 9, 2010 5:39:00 AM(UTC)
Groups: Registered
Posts: 4
My application was originally written on XP using VS2005. I have since transferred the project to a machine running Win7 (32) VS2010. When I attempt to run the project I get "Could not load file or assembly 'file:///.......\Win32\LeadTools.WinForms.dll or one of its dependecies. An attempt was made to load a program with an incorrect format.
Could anyon throw any light on this,
Many thanks
#2
Posted
:
Friday, September 10, 2010 10:32:05 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
You will get this error if you try to use 32bit DLLs in a 64bit app or vice-versa. If your app is set to Any CPU then the app will run as 64bit if it is running on a 64bit OS, and if you have the 32bit DLLs referenced it will not be able to load them. The solution is to set the project platform to x86 and use the Win32 DLLs or set the app to x64 and use the x64 DLLs.
Thanks
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.