SVN“无法找到身份验证文件”

时间:2017-04-20 12:16:30

标签: asp.net svn visualsvn-server sharpsvn

我有一个使用SharpSvn的ASP.NET应用程序(SharpSvn.1.9-x86.1.9005.3940.224)。该应用程序在带有IIS 8的Windows Server 2012 R2上运行,并具有自己的应用程序池。 SVN服务器本身是VisualSVN Server 3.6.0。此服务器设置为使用HTTPS。一切都像魅力一样。

现在我已经创建了第二个应用程序。还有与SharpSvn相同版本的ASP.NET。我已将此应用程序在新站点中部署到具有自己的应用程序池的同一IIS中。该应用程序运行良好。好吧,差不多......如果我试图获取作为第一个应用程序一部分的文件的历史记录,我会收到错误“无法找到auth文件”。

堆栈跟踪对我没有多大帮助:

[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

第二个应用程序池可以完全访问VisualSVN放置存储库的所有文件的目录。

VisualSVN Server的证书可以在“受信任的根证书颁发机构”下的计算机证书存储中找到。所以每个用户都应该可以访问它。

更糟糕的是:我的开发机器上没有这个问题(Windows 8,IIS Express,我的用户具有管理权限)。

我忘了什么想法?

祝你好运,    卡斯滕

1 个答案:

答案 0 :(得分:0)

非常简单:IIS应用程序池的属性loadUserProfile必须设置为true