Skip to main content

Posts

Showing posts with the label bad image format exception system.badimageformatexception target platform change should solve

Solved bad image format exception system.badimageformatexception

Ok, the reason you get this exception is because you are using an assembly that was generated in platform x and you are using it in a project with the platform y for instance using a project reference target platform 86 bit in a project that's build Platform is 64 bit to fix this you have to make the two projects with same target platform, you can get there by right clicking the project in the solution and then click properties and then choosing the target platform from there