Golovach Grach
Golovach Grach

Reputation: 168

Problems with using GMap.NET for Google Maps. Unable to connect to the internet and errors CS0246

I am newbie in C#. I need to make a simple Winform app that using Google Maps and I decided to use GMap.NET control. I does everything like in this guide, provided on GMap.NET official site. But (!) I don't found any kind of readmy for it. Also, I have 2 problems: 1) App can not connect to the internet (so, I can see only this:

Window No connection )

2) I have an error CS0246: The type or namespace name 'PointLatLng' could not be found (are you missing a using directive or an assembly reference?) for some commands, why? I am confused, everything is connected, referenced etc.

Upvotes: 0

Views: 2479

Answers (1)

Panda
Panda

Reputation: 458

Are you behind a proxy ?

If so, did you configure it like this :

System.Net.WebProxy myProxy=new System.Net.WebProxy(“XXXXXXX.com”,3128);
GMap.NET.MapProviders.GMapProvider.WebProxy = myProxy;

Upvotes: 1

Related Questions