错误图像格式异常问题[重复]
可能重复:
.Net程序集加载问题期间的BadImageFormatException
我试图运行一个加载程序集并提取其版本的exe文件。该文件在win xp上工作正常,但在win 7上运行时崩溃会产生以下异常。
Unhandled Exception: System.BadImageFormatException: Could not load file or asse
mbly 'some.dll' or one of its dependencies. An attempt was made to load a program with
an incorrect format.
File name: 'some.dll'
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boo
lean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at NxTools.InstallTools.Utils.MIPSettings.MIPEnvironmentSettings.Main(String[
] args)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLMSoftwareM
icrosoftFusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure lo
gging.
To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFus
ion!EnableLog].
有人遇到过这个问题吗?这个问题的可能解决方案是什么?
没有找到相关结果
已邀请:
2 个回复
拭十年
财沟项胶