启动项目未安装 [英] Startup Project is not getting installed
问题描述
我在VS 2015中创建了启动项目。我的主要项目是在x64中,我也将目标框架从安装项目的属性更改为x64。现在,当我要安装它时,抛出以下异常。任何想法我怎么能得到
摆脱以下问题?
I've created the Startup Project in VS 2015. My primary project is in x64 and I've change the Target Framework from properties of the setup project to x64 as well. Now, when I am going to install it is throwing following exception. Any idea how can I get rid of the following problem?
推荐答案
阿里,
> ;>错误1001,无法加载文件或程序集""或其中一个依赖项,尝试加载格式不正确的程序
>>error 1001, could not load file or assembly "" or one of its dependencies, an attempt was made to load a program with an incorrect format
当DLL的文件映像或者DLL的文件图像时抛出BadImageFormatException异常可执行程序无效。
A BadImageFormatException exception is thrown when the file image of a DLL or executable program is not valid.
1,如果您的应用程序使用32位组件,请确保它始终作为32位应用程序运行。
1, If your application uses 32-bit components, make sure that it always runs as a 32-bit application.
2, 确保您没有使用使用不同版本的.NET Framework创建的组件。
2, Make sure that you are not using a component that was created with a different version of the .NET Framework.
3,确保文件图像是有效的托管程序集或模块。
3, Make sure that the file image is a valid managed assembly or module.
参考: 疑难解答异常:System.BadImageFormatException
Refer: Troubleshooting Exceptions: System.BadImageFormatException
实际上,此错误 通常出现在不同的32位和64位情况下,请再次检查,还请参考以下类似问题:
In fact, this error usually occurs in different 32-bit and 64-bit situations, please check it again, also please refer to the following similar issues:
无法加载文件或程序集...尝试是为了加载一个格式不正确的程序(System.BadImageFormatException)
问候,
Frankie
这篇关于启动项目未安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!