title: "Failure loading DAC: CreateDacInstance failed" when loading dump file with ClrMD
body: <p>I'm trying the new library from microsoft, <a href="https://nuget.org/packages/Microsoft.Diagnostics.Runtime" rel="nofollow noreferrer">ClrMD</a>, to analyze crash-dumps and live process.</p>
  <p>I've follow the sample in the .NET Framework <a href="http://blogs.msdn.com/b/dotnet/archive/2013/05/01/net-crash-dump-and-live-process-inspection.aspx" rel="nofollow noreferrer">blog post</a> (using the <a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-41-54-93/ClrMDSample_2E00_cs" rel="nofollow noreferrer">attached .cs file</a>).</p>
  <p>I tried to run the sample to analyze a .dmp file which was taken from a program running on the same machine as the sample.</p>
  <p>When trying to create the run-time object, using the following code:</p>
  <pre><code>ClrRuntime runtime = target.CreateRuntime(dacLocation);
  </code></pre>
  <p>This exception is thrown:</p>
  <pre><code>Message: Failure loading DAC: CreateDacInstance failed 0x80131c30
   
    at Microsoft.Diagnostics.Runtime.Desktop.DacLibrary.Init(String dll)
    at Microsoft.Diagnostics.Runtime.Desktop.DacLibrary..ctor(DbgEngTarget dataTarget, String dll)
    at Microsoft.Diagnostics.Runtime.DbgEngTarget.CreateRuntime(String dacFilename)
    at DumpFetch.App..ctor()
  </code></pre>
  <p>Any ideas?</p>