gpt4 book ai didi

c# - 无法加载文件或程序集 'System.Spatial' 或其依赖项之一

转载 作者:太空狗 更新时间:2023-10-29 18:11:43 25 4
gpt4 key购买 nike

我收到此错误消息:

Could not load file or assembly 'System.Spatial, Version=5.7.0.0, Culture=neutral, PublicKeyToken=49ba329had364evz' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

我尝试卸载/更新 System.SpatialWindowsAzure.Storage Nuget 软件包,但仍然收到错误。

它是 WindowsAzure.Storage 包的依赖项,但有趣的是,我在本地运行 ASP.NET Web API 项目时不会出现此错误,而仅在 Azure 服务器上运行。

我不知道在哪里可以找到程序集的 list ,是 packages.config 吗?

如何消除这个错误?我已经浪费了两天了:(

最佳答案

根据有问题的项目的 bin 文件夹中存在的 DLL 版本更改了配置文件中的版本详细信息。

在配置文件中,它引用的是版本5.6.4,但我已更改为版本5.6.3,这解决了错误。

变更前

<dependentAssembly>
<assemblyIdentity name="System.Spatial" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" />
</dependentAssembly>

更改后。

<dependentAssembly>
<assemblyIdentity name="System.Spatial" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.3.0" newVersion="5.6.3.0" />
</dependentAssembly>

关于c# - 无法加载文件或程序集 'System.Spatial' 或其依赖项之一,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39064730/

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