title: NGen error failed to load runtime error
body: <p>I came across a strange error when using NGen from .NET Framework 4 to compile a bunch of DLL assemblies. The install worked for some of the DLLs, but for some others it produced the following error message:</p>
  
  <p>Failed to load the runtime. (Exception from HRESULT: 0x80131700). Assembly <em>AseemblyFileLocation</em> requires version v4.0.30319 of the runtime to run.
  Assembly will be compiled once the correct runtime is installed.</p>
  
  <p>I am certain that I have the correct runtime version. I found that no one had come across this when I tried a search on web for answers, which is even stranger.</p>
  
  <p>Any leads on this? Thanks.</p>