Topics: WPF
Aug 23, 2011 at 5:34 PM

I created a new .net 4.0 WPF project in VS 2010 SP1. I then added references to the three DLLs. I created a Map class in my project and then added 


 to pick up the reference. Once I add the control <my:Map /> to the XAML i get these errors. I am fairly new to WPF so maybe I am doing something totally wrong.

Any ideas?


Aug 23, 2011 at 8:23 PM

Only one ))). Add references 


and somewhere in XAML

 <gmap:GMapControl Margin="1" Background="Transparent" x:Name="mapCtrl"  Zoom="12" MaxZoom="24" MinZoom="4"/>


Aug 23, 2011 at 8:36 PM

Thank you for the reply. When I do that I get a less verbose Problem Loading designer error and this compiler error:

Unable to load the metadata for assembly 'GMap.NET.WindowsPresentation'. This assembly may have been downloaded from the web.  See  The following error was encountered during load: Could not load file or assembly 'GMap.NET.WindowsPresentation, Version=, Culture=neutral, PublicKeyToken=b85b9027b614afef' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

Aug 23, 2011 at 9:40 PM
Edited Aug 23, 2011 at 9:41 PM

No problem )  Maybe you're using. NET Framework 4 Client Profile as target .NET Framework version or profile .You need to change app.config like this 

<startup useLegacyV2RuntimeActivationPolicy="true">   

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> 


Aug 24, 2011 at 12:48 PM

You are correct. I forgot to mention that I did that step as well. So my app.config is like this:

<?xml version="1.0" encoding="utf-8" ?>
  <startup useLegacyV2RuntimeActivationPolicy="true">
      <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>


Aug 24, 2011 at 1:16 PM

ok, I figured out the issue. Since this DLL was downloaded it was not given full trust. I found instructions to unblock it. I am not getting the singleton error, but I saw a post about that so I think I am good to move forward.

Sep 5, 2011 at 5:08 PM

p.s. latest version should work without any configs