Home > .net > VS2010: BadImageFormatException

VS2010: BadImageFormatException

Yesterday, I ran into a situation where running the solution caused a BadImageFormatException to be thrown when loading a project.

This turned out to be due to VS2010 Beta defaulting to “x86” build when VS2008 defaults to “Any CPU”.  Of all the projects, I’d created 2 in VS2010 before moving the files, .csproj et all, to a VS2008 solution. This caused the build to switch to “Mixed” resulting in the exception being thrown.

The solution was to recreate the offending projects in VS2008.

Advertisements
Categories: .net
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: