System.BadImageFormatException: 无法加载文件或程序集 [英] System.BadImageFormatException: Could not load file or assembly
问题描述
C:WindowsMicrosoft.NETFramework64v4.0.30319>InstallUtil.exe C:\_PRODUKCIJAD
ebugDynamicHtmlTool.exe
Microsoft (R) .NET Framework Installation utility Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Exception occurred while initializing the installation:
System.BadImageFormatException: Could not load file or assembly 'file:///C:\_PRO
DUKCIJADebugDynamicHtmlTool.exe' or one of its dependencies. An attempt was ma
de to load a program with an incorrect format..
C:WindowsMicrosoft.NETFramework64v4.0.30319>
服务是 x86 编译的,即使两台计算机都是 x64,它也可以在我的计算机上运行.在 win 2008 所在的服务器中,我收到此错误.
service is x86 compiled even both computers are x64 and it works on my computer. Here in server where is win 2008 i get this error.
我尝试了 google 的解决方案,但没有任何效果.
i try solutions from google but none works.
就像在这里写我有 x86 项目http://www.davesquared.net/2008/12/systembadimageformatexception-on-64-位.html
Like write here i have x86 project http://www.davesquared.net/2008/12/systembadimageformatexception-on-64-bit.html
推荐答案
看来您正在使用该工具的 64 位版本来安装 32 位/x86 架构应用程序.在此处查找该工具的 32 位版本:
It seems that you are using the 64-bit version of the tool to install a 32-bit/x86 architecture application. Look for the 32-bit version of the tool here:
C:WindowsMicrosoft.NETFrameworkv4.0.30319
它应该可以很好地安装您的 32 位应用程序.
and it should install your 32-bit application just fine.
这篇关于System.BadImageFormatException: 无法加载文件或程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!