Svn启动窗口报错 Could not load file or assembly 'SharpSvn.dll' or one of its

时间:2023-03-08 16:09:35

win10 64位系统生成没问题,测试都没问题,结果换到win7 64位系统上,点开就出现,网上搜了下,通过以下方式解决, 必须把bin 文件夹全部删除,重新生成.要不还是会报错.

Solve it.

  1. Change my platform to x86
  2. Output path to "bin\"
  3. Downloaded the x86 of SharpSVN (1.7008.2243.14245)
  4. Add SharpSVN.dll in GAC.
  5. Delete the bin folder and rebuild solution

This is the link for the explanation.

原文地址

http://*.com/questions/15352528/could-not-load-file-or-assembly-sharpsvn-or-one-of-its-dependencies-an-attemp

错误2:点击上传提示一个异常.

unhandled exception has occurred in your application.if you click continue,if you chick continue,the application will ignore thie error and attempt to continue.if you click Quit, the application will close immediately
exception has been thrown by the target of an invocation.

抓捕异常存储

Svn启动窗口启动 上午 12:49:56
Svn启动窗口报错 Unable to connect to a repository at URL 'svn:///^^^^^^^/ftp' 上午 12:49:57

在win10上没问题,local 地址也换了,换了个电脑就出现这种情况.报错信息还有个详细的window的报错,

解决方法,加 try catch  抓取详细位置.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at WinForm.SetSvnForm.btnSvncommit_Click(Object sender, EventArgs e) in D:\Home\CheckPlatform\WinForm\WinForm\SetSvnForm.cs:line 66  这一行是个按钮提交上传的 地方, 是点这个地方出现的异常. 看来win的报错还是要仔细看看.
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)