Problems accessing virtual earth geocoding services
-
Wednesday, April 18, 2012 12:26 AM
I am trying to start off simple by requesting the coordinates for Chicago IL and so I have this code below but am getting an error on the line with "GeocodeService.GeocodeResponse geocodeResponse = geocodeService.Geocode(Request);" .
"Unable to automatically step into the server. Connecting to the server machine 'dev.virtualearth.net' failed. The Visual
Studio Remote Debugger does not support this edition of Windows." It is a Message Box error not an error caught by my try and catch blocks.private void frmBingMaps_Load(object sender, EventArgs e) { try { string Results = ""; GeocodeRequest Request = new GeocodeRequest(); Request.Credentials = new GeocodeService.Credentials(); Request.Credentials.ApplicationId = BingMaps.AppID; Request.Query = "Chicago, IL"; //Only return results with high confidence GeocodeService.ConfidenceFilter[] filters = new GeocodeService.ConfidenceFilter[1]; filters[0] = new GeocodeService.ConfidenceFilter(); filters[0].MinimumConfidence = GeocodeService.Confidence.High; //set the options to only return the high confidence results GeocodeService.GeocodeOptions geocodeOptions = new GeocodeService.GeocodeOptions(); geocodeOptions.Filters = filters; Request.Options = geocodeOptions; // Make the geocode request
GeocodeService.GeocodeServiceClient geocodeService = new GeocodeService.GeocodeServiceClient("BasicHttpBinding_IGeocodeService");
//Error thrown here GeocodeService.GeocodeResponse geocodeResponse = geocodeService.Geocode(Request); Results = geocodeResponse.Results[0].DisplayName; MessageBox.Show(Results); } catch (Exception E) { } }
All Replies
-
Monday, May 28, 2012 9:23 AMOwner
I highly recommend using the Bing Maps REST services and not the Bing Maps SOAP services. The Bing Maps SOAP services are old and outdated. The REST services are new and are seeing new features all the time. They are also much faster and work on a lot more development environments. To use the REST services in .NET take a look at this article: http://rbrundritt.wordpress.com/2012/01/06/bing-maps-rest-service-net-libraries/http://rbrundritt.wordpress.com
- Marked As Answer by Richard_BrundrittMicrosoft Employee, Owner Thursday, June 07, 2012 10:24 AM

