visual-studiosvntortoisesvn

Visual Studio Publish Failed: "Unable to delete file ... Access to the path ... is denied."


I've recently switched from a Windows XP machine to Windows 7. I use Subversion and TortoiseSVN.

I cannot publish my .NET application in Visual Studio. I get over a thousand errors like this:

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.

Visual Studio: "Publish failed"

Why is Subversion giving me trouble? How do I fix it?


I disabled the file indexing of my bin and obj folders. But, that didn't work.

Allow files in this folder to have contents indexed in addition to file properties


Solution

  • I noticed that my folders were read-only. I changed that.

    It worked! Publish succeeded.

    Folder Properties Read-only