.net - Bad Image Format exception problem -


possible duplicate:
badimageformatexception during .net assembly load issue

i trying run exe file loads assembly , extracts version. file working fine on win xp while running on win 7 crashes giving following exception.

unhandled exception: system.badimageformatexception: not load file or asse mbly 'some.dll' or 1 of dependencies. attempt made load program  incorrect format. file name: 'some.dll'    @ system.reflection.assembly._nload(assemblyname filename, string codebase, evidence assemblysecurity, assembly locationhint, stackcrawlmark& stackmark, boo lean throwonfilenotfound, boolean forintrospection)    @ system.reflection.assembly.internalload(assemblyname assemblyref, evidence  assemblysecurity, stackcrawlmark& stackmark, boolean forintrospection)    @ system.reflection.assembly.loadfrom(string assemblyfile)    @ nxtools.installtools.utils.mipsettings.mipenvironmentsettings.main(string[ ] args)  wrn: assembly binding logging turned off. enable assembly bind failure logging, set registry value [hklm\software\m icrosoft\fusion!enablelog] (dword) 1. note: there performance penalty associated assembly bind failure lo gging. turn feature off, remove registry value [hklm\software\microsoft\fus ion!enablelog]. 

has faced problem? probable solution problem?

this can have several causes, trying load 32bit managed dll on 64 bit machine, or vice versa.

it can mean dll dynamically loading not native dll, or dll file corrupted.

it may mean have dll using higher version of .net framework other dll using it, if rebuilt particular component different version example.

this question covers similar ground, this one suggests way force 64bit app run in 32bit mode can load 32bit dependency.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -