title: WinDbg !heap command not working due to missing symbols
body: <p>I am trying to use WinDbg debug my .NET application with C++ unmanaged memory allocations.</p>
  
  <p>When I try to run the <strong>!heap</strong> command, I get the following error message:</p>
  
  <pre><code>0:022&gt; !heap
  *** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\system32\KERNEL32.dll - 
  *************************************************************************
  ***                                                                   ***
  ***                                                                   ***
  ***    Your debugger is not using the correct symbols                 ***
  ***                                                                   ***
  ***    In order for this command to work properly, your symbol path   ***
  ***    must point to .pdb files that have full type information.      ***
  ***                                                                   ***
  ***    Certain .pdb files (such as the public OS symbols) do not      ***
  ***    contain the required information.  Contact the group that      ***
  ***    provided you with these symbols if you need this command to    ***
  ***    work.                                                          ***
  ***                                                                   ***
  ***    Type referenced: ntdll!_HEAP_ENTRY                             ***
  ***                                                                   ***
  *************************************************************************
  Invalid type information
  </code></pre>
  
  <p>How can I fix this error?</p>