Ble*_*ter 8 c# azure azure-storage visual-studio-2015
我收到此错误消息:
无法加载文件或程序集'System.Spatial,Version = 5.7.0.0,Culture = neutral,PublicKeyToken = 49ba329had364evz'或其依赖项之一.定位的程序集的清单定义与程序集引用不匹配.(HRESULT异常:0x80131040)
我试图卸载/更新System.Spatial和WindowsAzure.StorageNuget包,但仍然得到错误.
这是一个依赖WindowsAzure.Storage包,但有趣的是,在本地运行我的ASP.NET Web API项目时,我没有得到这个错误,但只有在Azure服务器上.
我不知道在哪里找到大会的清单,是packages.config吗?
如何摆脱这个错误?我已经浪费了两天:(
小智 12
根据有问题的项目的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>
Run Code Online (Sandbox Code Playgroud)
改变之后.
<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>
Run Code Online (Sandbox Code Playgroud)
由于某种我不知道的原因,Visual Studio 没有将较新的.dll文件上传到服务器。所以我System.Spatial在服务器上手动上传了5.7.0版本。
(尽管我仍然不知道如何更改所谓的清单中的版本。)
| 归档时间: |
|
| 查看次数: |
7818 次 |
| 最近记录: |