AnkhSVN breaks ASP.NET sharing permissions with SVN 1.7

后端 未结 4 1222
無奈伤痛
無奈伤痛 2020-12-19 05:41

The Background (skip to the bottom if you want the question)

Recently I upgraded an SVN repository (hosted on assembla) to SVN 1.7. After doing so,

4条回答
  •  隐瞒了意图╮
    2020-12-19 06:16

    I found this exact same issue happened when I did a 'Revert' using:

    • Tortoise Svn 1.6.16
    • AnkhSVN 2.3.11269.1348.
    • Visual Studio 2010 Professional
    • Windows 7 - 64 bit.

    I was completely puzzled the first time I encountered the permissions error and started off by thinking it was my code. After a while of fiddling about I ended up deleting the whole project and re-downloading from Subversion which fixed the issue.

    When this problem happened again I looked more closely at the reverted file, and I found the permissions on the reverted files do not match the permissions of the other files. Specifically 'Users' permissions, for the machine that Visual Studio is running on, is missing altogether.

    So I just added it in by:

    • Right clicking on the problem file. This caused the file properties window to appear.
    • Then clicked on 'Edit...'. The permission window appears.
    • Then clicked on Add and the 'Select Users, Computers, Service Accounts, or Groups window appears.
    • Click on the Object Types button and check all the boxes.
    • Click on the Locations button and make sure your machine name is selected.
    • Type in 'users' then click the 'check names' button.
    • Click OK on all the windows to close them.

    Your website should now run without the permissions error.

提交回复
热议问题