{"id":430,"date":"2010-03-09T12:56:40","date_gmt":"2010-03-09T12:56:40","guid":{"rendered":"http:\/\/dirk.forbiddendream.be\/?p=430"},"modified":"2016-01-07T10:49:30","modified_gmt":"2016-01-07T10:49:30","slug":"badimageformatexception","status":"publish","type":"post","link":"https:\/\/dirk.schuermans.me\/?p=430","title":{"rendered":"BadImageFormatException"},"content":{"rendered":"<p>Hello everyone,<\/p>\n<p>Recently while working on a VB.NET project I had a class library project set to compile for &#8220;x86&#8221; while my application was still set to compile for &#8220;Any CPU&#8221;.<\/p>\n<p>When I tried to access my dll it threw me a BadImageFormatException:<\/p>\n<p><!--more--><\/p>\n<p><a href=\"http:\/\/dirk.schuermans.me\/wp-content\/uploads\/2010\/03\/BadImageFormatException.png\"><img loading=\"lazy\" src=\"http:\/\/dirk.schuermans.me\/wp-content\/uploads\/2010\/03\/BadImageFormatException.png\" alt=\"\" title=\"BadImageFormatException\" width=\"451\" height=\"298\" class=\"alignnone size-full wp-image-431\" srcset=\"https:\/\/dirk.schuermans.me\/wp-content\/uploads\/2010\/03\/BadImageFormatException.png 451w, https:\/\/dirk.schuermans.me\/wp-content\/uploads\/2010\/03\/BadImageFormatException-300x198.png 300w\" sizes=\"(max-width: 451px) 100vw, 451px\" \/><\/a><\/p>\n<p>At first I didn&#8217;t know why it was throwing the error untill I noticed that my application was still set to compile for &#8220;Any CPU&#8221;.<br \/>\nI changed it to &#8220;x86&#8221; and after that it worked.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello everyone, Recently while working on a VB.NET project I had a class library project set to compile for &#8220;x86&#8221; while my application was still set to compile for &#8220;Any CPU&#8221;. When I tried to access my dll it threw me a BadImageFormatException:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[38],"tags":[],"_links":{"self":[{"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=\/wp\/v2\/posts\/430"}],"collection":[{"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=430"}],"version-history":[{"count":1,"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=\/wp\/v2\/posts\/430\/revisions"}],"predecessor-version":[{"id":512,"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=\/wp\/v2\/posts\/430\/revisions\/512"}],"wp:attachment":[{"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}