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=220.127.116.11, 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 18.104.22.168.
Can anybody please help me should I solve this?
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
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 22.214.171.124 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.
By changing the version in appconfig the error was gone.
User contributions licensed under CC BY-SA 3.0