BadImageFormat Exception未处理 [英] BadImageFormat Exception was Unhandled
问题描述
您好,
我遇到以下异常。
无法加载文件或程序集''RChilli,Version = 0.0.0.0,Culture = neutral,PublicKeyToken = null''或其依赖项之一。试图加载一个格式不正确的程序。
这是一个桌面应用程序,它在最后几个工作正常个月。最近我将我的PC升级到64位,从那以后我得到了这个例外。有人可以帮我解决这个问题吗?
感谢您的时间....
问候
Sebastian
Hello,
I am stuck in the following exception.
Could not load file or assembly ''RChilli, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'' or one of its dependencies. An attempt was made to load a program with an incorrect format.
This is a desktop application and it was working fine for last few months. Recently I have upgraded my PC to a 64 bit one, and since then I am getting this exception. Can someone help me to fix this?
Thanks for your time....
Regards
Sebastian
推荐答案
您好,
您正在使用x64构建一些项目,而某些项目使用x86或一个解决方案中的任何CPU。
右键单击解决方案,从上下文菜单中选择配置管理器。将所有项目目标平台设置为x86并重新构建。
问候
Jegan
Hi,
You are building some of the projects in x64 and some in either x86 or Any CPU inside one solution.
Right click on the Solution, Select the Configuration manager from the context menu. Set all projects target platform to x86and re build again.
Regards
Jegan
这篇关于BadImageFormat Exception未处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!