【发布时间】:2011-07-10 21:38:09
【问题描述】:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>InstallUtil.exe C:\_PRODUKCIJA\D
ebug\DynamicHtmlTool.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
DUKCIJA\Debug\DynamicHtmlTool.exe' or one of its dependencies. An attempt was ma
de to load a program with an incorrect format..
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>
服务是 x86 编译的,即使两台计算机都是 x64 并且它可以在我的计算机上运行。在 win 2008 所在的服务器中,我收到此错误。
我尝试了谷歌的解决方案,但没有一个有效。
喜欢在这里写我有 x86 项目 http://www.davesquared.net/2008/12/systembadimageformatexception-on-64-bit.html
【问题讨论】:
-
我做了一个干净的构建然后构建并且错误消失了