Could not load file or assembly 'GMap.NET.Core, Version=1.7.5.0

我是研究僧i 提交于 2019-12-13 20:23:18

问题


I am trying to load a map on my project. I'm using WPF on my project but since I can't use the "Overlays" I'm using to put a marker, and it's working on WindowsForm, I am now using it and calling it to the WPF form, until I encountered this error.

Could not load file or assembly 'GMap.NET.Core, Version=1.7.5.0, Culture=neutral, PublicKeyToken=b85b9027b614afef' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I look in my references, and I only have a reference to GMap.NET.Core version 1.7.0.0. Can anybody please help me should I solve this?


回答1:


You need to just download the project of Gmap.Net from here next extract the project files open Release-NETv(any_version)

this contain assembly of Gmap.Net.Core ,so just add reference of this assembly in your project.

Here is what happens when assemblies not matches this is not same problem but will help you understand.

Example Of Incorrect Reference

Error

Solution

To solve this kindly open your app config file and see the version number of gmap package there then check the version number of gmap inside your references if they not match delete dll from references and change the version number to 1.7.5.0 in your appconfig then rebuild project visual studio automatically restore the missing assemblies so they will be same on both sides For your better understanding please look this screen shot when I have an assembly in references uses version which is less the version is being use in project appconfig. When you install a package from package manager it goes inside package folder of your application to add this,delete the reference from references if contain old version then add latest version from package folder.

Error Solve

By changing the version in appconfig the error was gone.



来源:https://stackoverflow.com/questions/46701825/could-not-load-file-or-assembly-gmap-net-core-version-1-7-5-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!