title: pdb file, check for insufficient disk space, invalid path, or insufficient privilege
body: <p>I am getting this error all of a sudden and I don't know why. I have to restart VS2010 everytime I make change to the code because apparently it locks the pdb files.</p>
  
  <pre><code>1&gt;LINK : fatal error LNK1201: error writing to program database 'C:\code\MyProject\Debug\MyProject.pdb'; check for insufficient disk space, invalid path, or insufficient privilege
  </code></pre>
  
  <p>Even if I <code>clean</code> the project it doens't delete this file. I have tried the solution proposed <a href="http://social.msdn.microsoft.com/Forums/vstudio/en-US/b0271379-3ab1-4e08-af9e-d4f51fe8de79/lnk1201-error-at-every-build" rel="noreferrer">here</a> by Toni but it didn't work for me either. When add path to pre-build like he has suggested I get the following error:</p>
  
  <blockquote>
    <p>1>C:\Program Files
    (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5):
    error MSB3073: The command "C:\Program Files (x86)\Microsoft Visual
    Studio 10.0\freepdb  MyProject  1>C:\Program Files
    (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5):
    error MSB3073: :VCEnd" exited with code 9009.</p>
  </blockquote>