gpt4 book ai didi

c# - 无法加载文件或程序集 : The assembly may have been tampered with, 或已延迟签名但未使用正确的私钥完全签名

转载 作者:太空狗 更新时间:2023-10-29 19:42:59 35 4
gpt4 key购买 nike

我在我的项目中使用从源代码构建的 ASP.NET 程序集。我的项目构建成功。但是当我以 Debug模式启动时,出现异常

无法加载文件或程序集“System.Net.Http.Formatting”或其依赖项之一。无法验证强名称签名。程序集可能已被篡改,或者它被延迟签名但未使用正确的私钥完全签名。 (HRESULT 异常:0x80131045)

最佳答案

通过从 asp web 堆栈 odata 项目的项目文件中删除以下代码行,我能够解决我的 odata dll 的这个问题。

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory),Runtime.sln))\tools\WebStack.settings.targets" />

关于c# - 无法加载文件或程序集 : The assembly may have been tampered with, 或已延迟签名但未使用正确的私钥完全签名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11566949/

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