title: Visual Studio solution doesn't compile, but project does
body: <p>When I build or rebuild my solution I get the error:</p>
  
  <blockquote>
    <p>Error  CS2012  Cannot open 'C:\Users\myUserName\Documents\Visual Studio 2017\Projects\mySolutionFolder\myProjectFolder\obj\Debug\myExecutable.exe' for writing -- 'Access to the path 'C:\Users\myUserName\Documents\Visual Studio 2017\Projects\mySolutionFolder\myProjectFolder\obj\Debug\myExecutable.exe' is denied.'</p>
  </blockquote>
  
  <p>However, when I build the project, it compiles fine. Once I build the project then a solution build doesn't throw any errors. I am running visual Studio 2017.</p>
  
  <p>What I've tried (without success):</p>
  
  <ol>
  <li>There is a second project in the solution, but I've unloaded it and it still errors. </li>
  <li>I deleted the solution file and had visual studio create a new one.</li>
  </ol>
  
  <p>Additional Info:
  The error is somewhat random. Usually it errors out, but sometimes not. The odds of an error are reduced the longer I wait between a "Clean" and a rebuild. I have the same problem even when running in Administrator mode. I'm beginning to think it's a hard drive issue.</p>