2
Vote

System.UnauthorizedAccessException

description

The program can't create a folder with a name svn folder and consequently writes such error.
 
Error: Exception: System.UnauthorizedAccessException: Access denied
Error: "C:\Program Files (x86)\SVNStyleCop\Temp\ddb2098c-7853-416e-b0ab-149b3c35a3ba\Tests".
Error: in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
Error: in System.IO.Directory.InternalCreateDirectory(String fullPath, String path,
Error: DirectorySecurity dirSecurity)
Error: in System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
Error: in SVNStyleCop.Program.SaveCommittedFilesToTemp(List`1 localSourceFiles, String
Error: repositoryPath, String revision, String transaction) в
Error: C:\Projects\Utilities\SVNStyleCop\Program.cs:строка 82
Error: in SVNStyleCop.Program.Main(String[] args) в
Error: C:\Projects\Utilities\SVNStyleCop\Program.cs:строка 35
 
Windows Server 2008 SP 2 RUS
UAC Dissable
VisualSVN Server 2.1.5 (Not Windows Authentication)

comments

Tpovin wrote Feb 17, 2011 at 9:58 AM

My error
Has granted the rights for user Network Service for folder SVNStyleCop. Thanks. Excellent program

UncleSamSwiss wrote Aug 23, 2011 at 9:44 AM

Another solution is not to install SVNStyleCop to your Program Files folder. Unfortunately it saves temp files not in the user's Temp folder, but inside the application folder.

wrote Aug 23, 2011 at 9:44 AM

wrote Feb 13, 2013 at 7:47 PM