-2
可能重复:
System.BadImageFormatException “invalid format” when trying to install service with installutil.exeSystem.BadImageFormatException这是什么意思?
当我安装我的Windows服务应用程序,我得到以下异常:
错误在初始化安装时发生异常1001: System.BadImageFormatException:无法加载文件或程序集 ..... file.exe或其中之一ts依赖关系。试图加载格式不正确的程序 。