Assembly.LoadFile() throws exception about missing manifest
<p>The exception is:</p>

<p>The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)</p>

<p>I get it at the line:</p>

<pre><code>Assembly lvAssembly = Assembly.LoadFile(aPathFileName); 
</code></pre>

<p>The file being loaded is a plugin that is generated by a different application.
If I changed the Target Framework Version of the plugin from 4.0 to 3.5 and recompile. The Plugin loads fine.  I don't understand why the Assembly.LoadFile method would care what version of the .net framework the plugin was compiled for.</p>

<p>Changing the Target Framework for the application loading the plugin to 4.0 didn't help.</p>
