我引用的是.net 2.0項目中構建的.net 2.0程序集。 Windows XP機器上它工作正常,但在Win2003的64位進行部署時程序集參考 - System.BadImageFormatException錯誤
我得到以下
System.BadImageFormatException: Could not load file or assembly 'Wrapper, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
項目錯誤是建立在Win XP的32位機,然後部署使用WiX的安裝程序,手動嘗試更換大會但沒有工作。
可能的重複:http://stackoverflow.com/questions/7325660/cannot-load-assembly-problem – Rik