svn: E200031: sqlite: attempt to write a readonly database [C_Sharp]

错误描述:

post-commit hook failed (exit code 1) with output:

svn: E155004: Working copy 'D:\www\Test' locked
svn: E200031: sqlite: attempt to write a readonly database
svn: E200031: sqlite: attempt to write a readonly database
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

原因是Visual SVN Server服务的执行权限不够,不能对指定目录做读写操作。

解决办法:

  win+R  运行 services.msc 找到visual svn server 服务 右键>属性>登陆面板>登录身份勾选:本地系统账户,并勾选“允许服务与桌面交互”;

重启服务即可生效。