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>
即使两台计算机都是x64,该服务也是以x86编译的,并且在我的电脑上可以工作。但是在这台安装有Windows Server 2008的服务器上出现了错误。
我尝试了谷歌上的解决方案,但都没有生效。
就像这里所说的,我有一个x86项目: http://www.davesquared.net/2008/12/systembadimageformatexception-on-64-bit.html