title: Visual Studio Publish Failed: "Unable to delete file ... Access to the path ... is denied."
body: <p>I've recently switched from a Windows XP machine to Windows 7. I use Subversion and TortoiseSVN.</p>
  
  <p>I cannot publish my .NET application in Visual Studio. I get over a thousand errors like this:</p>
  
  <blockquote>
    <p>Unable to delete file
    "obj\Debug\Package\PackageTmp\Views\ViewName.svn\text-base\ActionName.aspx.svn-base".
    Access to the path
    'C:\Code\SolutionName\ProjectName\obj\Debug\Package\PackageTmp\Views\ViewName.svn\text-base\ActionName.aspx.svn-base'
    is denied.</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/qE3cB.jpg" alt="Visual Studio: &quot;Publish failed&quot;"></p>
  
  <p>Why is Subversion giving me trouble? How do I fix it?</p>
  
  <hr>
  
  <p>I disabled the file indexing of my bin and obj folders. But, that didn't work.</p>
  
  <p><img src="https://i.stack.imgur.com/qE3cB.jpg" alt="Allow files in this folder to have contents indexed in addition to file properties"></p>