I’ve got an SVN hook written as a .NET console app and running on VisualSVN server which is causing some problems. Every time I try to commit (either remotely with Tortoise or locally via command line) I get the response “Access Denied”. Looking at the event viewer for VisualSVN there is an error beginning with “Could not MERGE resource…” followed by another error repeating “Access Denied”.
If the pre-commit hook is disabled the commit goes through fine so I don't think it’s anything to do with repository permissions. The path to the pre-commit hook is definitely correct so SVN is looking in the right location. I’ve also tried giving my account local admin rights as well as explicitly giving it “Read & Execute” on the folder with the hook app. I can run the PreCommit.exe console app directly so it’s certainly capable of executing on the machine.
This is my pre-commit.cmd file in the hooks folder of the repo:
E:\PreCommitHooks\PreCommit.exe %1 %2
All of this worked fine on my local machine so I’m confident everything is correct syntactically and it’s simply a permissions error somewhere along the way. Any ideas?