gpt4 book ai didi

c# - Release模式下的 Visual Studio "Could not load file or assembly. Operation is not supported"错误

转载 作者:IT王子 更新时间:2023-10-29 03:43:15 26 4
gpt4 key购买 nike

我有一个使用两个外部 dll 文件的 C# 小项目。一个是Redmine.Net.Api.dll,另一个是NLog.dll。我正在使用 Visual Studio 2010。我将这两个文件添加为对我的项目的引用。问题是,当我在 Debug 模式下运行项目时,它会编译,但是当我切换到 Release 模式时,它会说:

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

我该如何解决这个问题?

最佳答案

您是否从网上下载了 Redmine.Net.Api dll?如果是,则使用 Windows 资源管理器浏览到它,右键单击它并选择属性。在那里你应该点击“取消阻止”。由于某些原因,它可能已被阻止。

enter image description here

关于c# - Release模式下的 Visual Studio "Could not load file or assembly. Operation is not supported"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21753979/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com