-2
可能重複:
System.BadImageFormatException 「invalid format」 when trying to install service with installutil.exeSystem.BadImageFormatException這是什麼意思?
當我安裝我的Windows服務應用程序,我得到以下異常:
錯誤在初始化安裝時發生異常1001: System.BadImageFormatException:無法加載文件或程序集 ..... file.exe或其中之一ts依賴關係。試圖加載格式不正確的程序 。