System.badimageformatexception 追蹤

0
Avatar
Legacy Poster

hi ,
i have software developed in vs2008 that works great on all our xp machines. we just replaced a machine with windows 7
and we can't get thje app to run this is the error we get
System.BadImageFormatException: Could not load file or assembly 'Seagull.BarTender.Print, Version=9.20.2.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
File name: 'Seagull.BarTender.Print, Version=9.20.2.0, Culture=neutral, PublicKeyToken=null'

i can't rebuild with .net 4.0 since vs2008 doesn't support.

please tell me what i can do to make this work.

Thanks in advance

1 意見

0
Avatar
Shotaro Ito
評論操作 永久連結

Hi Slimshim,

First, make sure your BarTender activated as Enterprise edition or above, able to connect Seagull License Server (Administer > Licensing setup > Test) and print without problem.

Second, try .net SDK samples run fine or not.
If you haven't install BarTender .net SDK Documentation, install that via custom install from Programs > modify > BarTender 9.2.
(Standard install doesn't install BarTender .net SDK Documentation.)
When you installed BarTender .net SDK, you will have some sample applications from Start menu > BarTender 9.2 > BarTender .net SDK.
Check if some apps (such as Click Print) runs.

If your Windows 7 is x64 version, set your project's compile target to x86 (not any or x64) as BarTender .net SDK run as 32bit only.
see this post [url="http://seagullscientific.invisionzone.com/index.php?/topic/502-net-dll-does-not-load-unless-the-net-project-is-built-for-x86/page__pid__1467#entry1467"].net Dll Does Not Load Unless The .net Project Is Built For X86[/url]
Hope that helps.

登入寫評論。