BadImageFormatException when trying to install msi

你。 提交于 2019-12-24 07:59:14

问题


I am using VS 2015 and .net framework 4.6. I have one solution with multiple projects. When i build the solutions it works fine. I build solution and all the projects for Release x64. I have one installer project as well which contains dll of all the projects. When i build the installer it build successfully. The real problem comes when i am trying to install that build. It gives me an exception : BadImageFormatException


回答1:


Check the NET FW versions. If there is code targeted at the NET 4.0 CLR a NET 2 CLR (up to and including NET 3.x) won't load it.

(Added as an answer following poster's response).



来源:https://stackoverflow.com/questions/47345168/badimageformatexception-when-trying-to-install-msi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!