Gmap doesnt show Openstreet map

Topics: Bugs
Aug 29, 2016 at 11:17 AM
Last few days in my WPF app when load Openstreetmap it doesnt show anything i get:
Exception: The remote server returned an error (403) Forbidden. It worked perfectly for last few months and i noticed this problem two days ago.
Aug 29, 2016 at 9:46 PM
Hi,

since today I've got the same Problem.

What is the problem ?
Aug 30, 2016 at 9:33 AM
Hi,

I found the solution.
In MapProviders.GMapProvider.UserAgent must be insert any string thats identify your software or whatever.
Default is presumably forbidden.
When you change this the problem is gone.

Greetz
Aug 31, 2016 at 12:08 AM
UserAgent fixed, it works fine now
Marked as answer by radioman on 8/30/2016 at 4:08 PM
Sep 5, 2016 at 10:37 AM
Hi
What's the fix for this? New dlls or change the call in the application?
Sep 5, 2016 at 1:02 PM
Just add this line in your application (in your main window constructor or OnLoad for instance) :
MapProviders.GMapProvider.UserAgent = "put any string right there or the name of your application";
Sep 5, 2016 at 1:25 PM
Hi,

We also had this problem in our application and have applied the fix (successfully). Does anyone know what caused it, I was worried that we had been blocked for some reason, but after reading this it seems like a more general issue.
Apr 8 at 9:30 PM
HANOLH wrote:
Hi,

We also had this problem in our application and have applied the fix (successfully). Does anyone know what caused it, I was worried that we had been blocked for some reason, but after reading this it seems like a more general issue.
I had the same problem. Very happy I found this post.

At what point does openstreetmaps block a user?
Apr 14 at 5:27 PM
NDennis wrote:
HANOLH wrote:
Hi,

We also had this problem in our application and have applied the fix (successfully). Does anyone know what caused it, I was worried that we had been blocked for some reason, but after reading this it seems like a more general issue.
I had the same problem. Very happy I found this post.

At what point does openstreetmaps block a user?
Excellent, Same here!