Visual Studio的"无法加载文件或程序。操作不支持"错误在Release模式 [英] Visual Studio "Could not load file or assembly. Operation is not supported" error in Release mode

查看:180
本文介绍了Visual Studio的"无法加载文件或程序。操作不支持"错误在Release模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#中的小项目,使用两个外部dll文件。一个是Redmine.Net.Api.dll,另一个是NLog.dll。我使用Visual Studio 2010中我加了两个文件作为参考我的项目。问题是,当我运行在调试模式下的项目,它编译,但是当我切换到发布,它说:




错误1无法加载文件或程序
'的file:/// C:\project\lib\Redmine.Net.Api.dll'或其
依赖关系之一。不支持操作。 (异常来自HRESULT:
0x80131515)C:\project\SGEN项目




我怎样才能解决这个问题? / p>

解决方案

你下载 Redmine.Net.Api DLL 从网上?如果是的话,然后浏览到它与Windows资源管理器,右击它并选择属性。在那里,您应该点击解除阻止。它可能已被封锁某些原因。




I have a small project in C# that uses two external dll files. One is the Redmine.Net.Api.dll and the other is NLog.dll. I'm using Visual Studio 2010. I added both files as Reference to my project. The problem is that when I run the project in Debug mode, it compiles, but when I switch to Release, it says:

Error 1 Could not load file or assembly 'file:///C:\project\lib\Redmine.Net.Api.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) C:\project\SGEN project

How can I fix this?

解决方案

Did you download Redmine.Net.Api dll from the web? If yes, then browse to it with Windows Explorer, right click on it and choose properties. There you should click 'Unblock'. It might have been blocked for some reasons.

这篇关于Visual Studio的"无法加载文件或程序。操作不支持"错误在Release模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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