问题描述
尝试使用使用SharpSVN在ASP.NET应用程序。到目前为止,它已经没有什么,但麻烦。首先,我一直得到的锁定的文件(不存在)权限错误,即使NETWORK SERVICE对目录中的所有权限。最后,在挫折中我只授予每个人完全控制。现在,我得到一个新的错误:
Trying to use use SharpSVN in an ASP.NET app. So far, it's been nothing but trouble. First, I kept getting permission errors on "lock" files (that don't exist), even though NETWORK SERVICE has full permissions on the directories. Finally in frustration I just granted Everyone full control. Now I get a new error:
选项的https://服务器/ SVN /回购:授权失败:无法验证服务器:驳回基本挑战(https://开头的服务器)
OPTIONS of 'https://server/svn/repo': authorization failed: Could not authenticate to server: rejected Basic challenge (https://server)
这发生了,我是否低于或没有设置的DefaultCredentials:
This happens whether I have the DefaultCredentials set below or not:
using (SvnClient client = new SvnClient())
{
//client.Authentication.DefaultCredentials = new System.Net.NetworkCredential("user", "password");
client.LoadConfiguration(@"C:\users\myuser\AppData\Roaming\Subversion");
SvnUpdateResult result;
client.Update(workingdir, out result);
}
任何线索?我希望有这个库的一些文件,因为它似乎非常有用。
Any clues? I wish there was SOME documentation with this library, as it seems so useful.
推荐答案
您需要授予权限是最有可能的ASPNET用户的用户,因为这是在ASP.NET code运行作为默认用户。
The user you need to grant permission is most likely the ASPNET user, as that's the user the ASP.NET code runs as by default.
这篇关于如何使用SharpSVN在ASP.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!