title: dia2dump: CoCreateInstance failed - HRESULT = 80040154
body: <p>I'm trying to dump the signature of a PDB on Windows 7 x64 using Visual Studio 2017 and its <a href="https://msdn.microsoft.com/en-us/library/b5ke49f5.aspx" rel="nofollow noreferrer">dia2dump</a>. I loaded <code>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\Samples\DIA2Dump\DIA2Dump.sln</code>. It built successfully:</p>
  
  <pre><code>1&gt;------ Rebuild All started: Project: Dia2Dump, Configuration: Debug x64 ------
  1&gt;stdafx.cpp
  1&gt;regs.cpp
  1&gt;PrintSymbol.cpp
  1&gt;dia2dump.cpp
  1&gt;Generating Code...
  1&gt;Dia2Dump.vcxproj -&gt; C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\Samples\DIA2Dump\x64\Debug\Dia2Dump.exe
  1&gt;Dia2Dump.vcxproj -&gt; C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\Samples\DIA2Dump\x64\Debug\Dia2Dump.pdb (Partial PDB)
  ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
  </code></pre>
  
  <p>When I run it on the PDB, I get the following error:</p>
  
  <pre><code>C:\&gt;"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\Samples\DIA2Dump\x64\Debug\Dia2Dump.exe" file.pdb
  CoCreateInstance failed - HRESULT = 80040154
  </code></pre>
  
  <p>Just in case, I ran the following and it was successful, but dia2dump failed with the same error (also after reboot):</p>
  
  <pre><code>regsvr32 "C:\Program Files\Common Files\Microsoft Shared\VC\msdia100.dll"
  </code></pre>
  
  <p>How do I debug this?</p>