无法加载文件或程序集"SharpSvn"或其依赖项之一.试图加载格式不正确的程序 [英] Could not load file or assembly 'SharpSvn' or one of its dependencies. An attempt was made to load a program with an incorrect format

查看:524
本文介绍了无法加载文件或程序集"SharpSvn"或其依赖项之一.试图加载格式不正确的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了SharpSVN的64位版本,此处为

I just downloaded the 64bit version of the SharpSVN here's the link!

运行应用程序时,显示错误消息.我在网上搜索了如何解决此问题的方法,但失败了.我尝试了以下解决方案:

When I run my application, error message displayed. I have searched the net on how to fix this issue but I'm failed. I tried the following solution:

  1. 按照此帖子
  2. 中的建议将Configuration Manager设置为x64.
  3. 在此响应
  4. 上设置启动配置
  5. 还尝试下载x86,并将配置管理器设置为x86.
  6. 也尝试过此操作,添加了程序集链接
  1. setting the Configuration Manager to x64 as suggested on this post
  2. setting the startup config on this response
  3. also tried downloading x86 and set the config manager to x86.
  4. tried this also, adding assembly link

我正在使用Win7、64位,.net 4.0.

I'm using Win7, 64bit,.net 4.0.

推荐答案

解决它.

  1. 将我的平台更改为x86
  2. "bin \"的输出路径
  3. 下载了SharpSVN x86(1.7008.2243.14245)
  4. 在GAC中添加SharpSVN.dll.
  5. 删除bin文件夹并重建解决方案

这是链接的解释.

这篇关于无法加载文件或程序集"SharpSvn"或其依赖项之一.试图加载格式不正确的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆