Search code examples
asp.netsvnvisualsvn-serversharpsvn

SVN "Unable to locate auth file"


I have an ASP.NET application which uses SharpSvn (SharpSvn.1.9-x86.1.9005.3940.224). The application runs on a Windows Server 2012 R2 with IIS 8 with its own application pool. The SVN server itself is VisualSVN Server 3.6.0. This server is setup to use HTTPS. Everything works like a charm.

Now I've created a second application. As well ASP.NET with the very same version of SharpSvn. I've deployed this application in a new site into the very same IIS with its own application pool. The application is running perfectly fine. Well, almost... if I try to get the history of a file which is part of the first application I get the error "Unable to locate auth file".

The stack trace is not very helpful for me:

[SvnException]: Unable to locate auth file
[SvnRepositoryIOException]: Unable to connect to a repository at URL 'https://localhost:8181/svn/tcr/kiosk/KioskSetup.xml'
   at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets) in d:\bb\sharpsvn-v1.900x\v40\src\sharpsvn\svnclientargs.cpp:line 78
   at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, svn_error_t* error, Object targets) in d:\bb\sharpsvn-v1.900x\v40\src\sharpsvn\svnclientargs.cpp:line 39
   at SharpSvn.SvnClient.InternalLog(ICollection`1 targets, Uri logRoot, SvnRevision altPegRev, SvnLogArgs args, EventHandler`1 logHandler) in d:\bb\sharpsvn-v1.900x\v40\src\sharpsvn\commands\log.cpp:line 378
   at SharpSvn.SvnClient.Log(ICollection`1 targets, SvnLogArgs args, EventHandler`1 logHandler) in d:\bb\sharpsvn-v1.900x\v40\src\sharpsvn\commands\log.cpp:line 213
   at SharpSvn.SvnClient.Log(ICollection`1 targetPaths, SvnLogArgs args, EventHandler`1 logHandler) in d:\bb\sharpsvn-v1.900x\v40\src\sharpsvn\commands\log.cpp:line 267
   at SharpSvn.SvnClient.GetLog(ICollection`1 targetPaths, SvnLogArgs args, Collection`1& logItems) in d:\bb\sharpsvn-v1.900x\v40\src\sharpsvn\commands\log.cpp:line 486
   at AspNetMaintenance.Versioning.VersionControlSvn.GetLog(ICollection`1 fileNamesWithPath) in D:\projects\misc\AspNetMaintenance\AspNetMaintenance\Versioning\VersionControlSVN.cs:line 330
   at AspNetMaintenance.Controllers.FileExplorerController.GetHistory(DataSourceRequest request, Guid[] files) in D:\projects\misc\AspNetMaintenance\AspNetMaintenance\Controllers\FileExplorerController.cs:line 309

The second application pool has full access to the directory where VisualSVN puts all its files of the repositories.

VisualSVN Server's certificate can be found in the computer's certificate store under "Trusted Root Certification Authorities". So it should be accessible by every user.

And to make things even worse: I do not have this issue on my development machine (Windows 8, IIS Express, my user has administrative privileges).

Any ideas what I forgot?

Best regards, Carsten


Solution

  • It's quite simple: The property loadUserProfile of the IIS application pool has to be set to true.