<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>David&#039;s Blog &#187; BadImageFormatException</title>
	<atom:link href="http://www.davidmoore.info/tag/badimageformatexception/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidmoore.info</link>
	<description>Computer says no</description>
	<lastBuildDate>Thu, 26 Jan 2012 21:49:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>System.BadImageFormatException</title>
		<link>http://www.davidmoore.info/2008/10/14/systembadimageformatexception/</link>
		<comments>http://www.davidmoore.info/2008/10/14/systembadimageformatexception/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 12:52:42 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[BadImageFormatException]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://davidmoore.info/?p=28</guid>
		<description><![CDATA[<p>I&#8217;m currently build the new Overclockers New Zealand website in .NET</p>
<p>I have a nice continuous integration server going smoothly, but my most recent check-in threw up a strange error when running the Unit Tests:</p>
<p>System.BadImageFormatException : Could not load file or assembly &#8216;Overclockers.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&#8217; or one of its dependencies. The module was expected to contain <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.davidmoore.info/2008/10/14/systembadimageformatexception/">System.BadImageFormatException</a></span>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently build the new Overclockers New Zealand website in .NET</p>
<p>I have a nice continuous integration server going smoothly, but my most recent check-in threw up a strange error when running the Unit Tests:</p>
<blockquote><p>System.BadImageFormatException : Could not load file or assembly &#8216;Overclockers.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&#8217; or one of its dependencies. The module was expected to contain an assembly manifest.</p></blockquote>
<p>The server is actually a VMWare instance, but is running a 32-bit version of Windows Server 2003 EE.</p>
<p>After some troubleshooting and searching, I decided to first try to explicitly build for x86 first anyway. This is done in the Project Properties dialog in Visual Studio.</p>
<p><img class="alignnone" title="Target platform for X86" src="/wp-content/uploads/target-platform-x86.jpg" alt="" width="625" height="371" /></p>
<p>When changing this, make sure you make the change for both Debug and Release configurations.</p>
<p>This seemed to fix the problem.</p>
<p>I suspect this could be because I have some Shell32 interop in one of my shared libraries, and this may have caused problems, and/or the fact I&#8217;m running the instance on VMWare.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidmoore.info/2008/10/14/systembadimageformatexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

