我在提交/更新前几天在家中的网络驱动器(其中之一)上设置的 SVN 存储库时遇到问题。
我指的是使用 url 的存储库:
file://mynetworkdrive/Documents/subversion/code/sln/trunk/MyWebsite/trunk/Home
当我从 VS 2010 的“解决方案”上下文菜单中选择“更新”或“提交”选项时,会出现一个对话框窗口,显示如下所示的异常:
SharpSvn.SvnRepositoryIOException: Commit failed (details follow): ---> SharpSvn.SvnRepositoryIOException: Unable to connect to a repository at URL 'file://mynetworkdrive/Documents/subversion/code/sln/trunk/MyWebsite/trunk/Home' ---> SharpSvn.SvnRepositoryIOException: Unable to open an ra_local session to URL ---> SharpSvn.SvnRepositoryIOException: Unable to open repository 'file://mynetworkdrive/Documents/subversion/code/sln/trunk/MyWebsite/trunk/Home' ---> SharpSvn.SvnSystemException: Can't open file '\\mynetworkdrive\Documents\subversion\code\sln\trunk\MyWebsite\trunk\Home\format': Logon failure: unknown user name or bad password.
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets)
at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, svn_error_t* error, Object targets)
at SharpSvn.SvnClient.Commit(ICollection`1 paths, SvnCommitArgs args, SvnCommitResult& result)
at Ankh.Services.PendingChanges.PendingChangeHandler.<>c__DisplayClass1b.<Commit_CommitToRepository>b__19(Object sender, ProgressWorkerArgs e)
当我第一次设置它时,我可以在 Visual Studio 中与存储库进行良好的通信。
我可以使用 Windows 资源管理器浏览网络驱动器的内容。
我可以在 Visual Studio 之外使用 TortoiseSVN 来更新或提交到我的存储库。
但是,这很痛苦,我希望 Ankhsvn 与 Visual Studio 的集成可供使用。
似乎 Visual Studio 忘记了访问 URL 所需的用户名/密码。我找不到替换或强制提示输入凭据的方法。
我还改为以管理员身份运行 Visual Studio 2010,以便可以使用 IIS 7,我想知道这是否与它有关?