Google Terrain - the remote server returned an error 404

Topics: Help
Jan 11, 2011 at 12:04 AM

GMap.NET is having trouble loading Terrain?

This happens to me in Demo.WindowsForms.exe and Demo.WindowsPresentation.exe on two different computers (same LAN).

Anybody else?

Coordinator
Jan 11, 2011 at 7:53 AM

is automatic version detection working?

Jan 11, 2011 at 5:02 PM

hello radioman,

How do I tell if automatic version detection is working? I opened the Gmap.NET project and searched but nothing seems relevant. I see this: http://greatmaps.codeplex.com/Thread/View.aspx?ThreadId=65221 but still have no idea.

All the other maps are loading okay, only Google Terrain is having problems. Google Terrain working okay for you then? I can load the terrain map (http://websentinel.net/) in my browser, so I know Google is not blocking me.

Coordinator
Jan 11, 2011 at 5:14 PM

run in debug mode, and watch the output, and yes for me it's working as usual ;}

Coordinator
Jan 11, 2011 at 5:40 PM

where is all start log?

Coordinator
Jan 11, 2011 at 7:03 PM

still can't see the start of the log ;/

Jan 11, 2011 at 7:12 PM

Google Map seems good, but Satellite is also having problems

Coordinator
Jan 11, 2011 at 7:33 PM

turn on any demo, and copy first 20 lines from output ;] don''t waste codeplex storage with garbage

Coordinator
Jan 11, 2011 at 7:36 PM

you should find these lines if it's ok:

TryCorrectGoogleVersions, VersionGoogleMap: m@142
TryCorrectGoogleVersions, VersionGoogleLabels: h@142
TryCorrectGoogleVersions, VersionGoogleSatellite: 76
TryCorrectGoogleVersions, VersionGoogleTerrain: t@126,r@142

Jan 11, 2011 at 7:54 PM

Debugging TryCorrectGoogleVersions()

html.LastIndexOf("apiCallback(["); is returning -1;

large html returned on line line, trying to make sense of it, starts with

 

<!DOCTYPE html><html xmlns:v=\"urn:schemas-microsoft-com:vml\" class=\"\"><head> <meta content=\"text/html;charset=UTF-8\" http-equiv=\"content-type\"/> <meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\"/> <meta content=\"Find local businesses, view maps and get driving directions in Google Maps\" name=\"description\"/>   <noscript> <meta content=\"0; URL=/m?oi=nojs\" http-equiv=\"refresh\"/> </noscript> <title>Google Maps</title>

Coordinator
Jan 11, 2011 at 8:02 PM

you use old version, current version uses RegularExpressions to get correct ids

Jan 11, 2011 at 8:03 PM

Also found this in "html" variable of method TryCorrectGoogleVersions(): 

window.GLoad = function(apiCallback) {apiCallback(0,0,0,0,0,0,0,0,0,0 ,jslinker ,0 );} ;var appOptions = [[\"http://mt0.google.com/vt/lyrs=m@142\\x26hl=en\\x26\",\"http://mt1.google.com/vt/lyrs=m@142\\x26hl=en\\x26\"],[\"http://khm0.google.com/kh/v=76\\x26\",\"http://khm1.google.com/kh/v=76\\x26\"],[\"http://mt0.google.com/vt/lyrs=h@142\\x26hl=en\\x26\",\"http://mt1.google.com/vt/lyrs=h@142\\x26hl=en\\x26\"],[\"http://mt0.google.com/vt/lyrs=t@126,r@142\\x26hl=en\\x26\",\"http://mt1.google.com/vt/lyrs=t@126,r@142\\x26hl=en\\x26\"],[\"http://khmdb0.google.com/kh?v=34\\x26\",

Jan 11, 2011 at 8:03 PM

old version of Gmap.NET? 

Coordinator
Jan 11, 2011 at 8:09 PM

http://greatmaps.codeplex.com/SourceControl/BrowseLatest

Jan 11, 2011 at 8:29 PM

Working once again, thanks radioman. 

Coordinator
Jan 11, 2011 at 8:31 PM

;}