microsoft / BingMapsRESTToolkit

This is a portable class library which makes it easy to access the Bing Maps REST services from .NET.

Home Page:https://github.com/Microsoft/BingMapsRESTToolkit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with BingMapsRESTToolkit.Response

opened this issue · comments

I am trying to run the samples of the RESTToolkitTestApp that i have downloaded from this repositery. When I click on Route, Transit Route or any other, I get the following error: ''There was an error deserliaizing the object of type BingMapsRESTToolkit.Response. Encountered un expected charecter '<' ''. I have just added the key and didnt touch anything else in the code, just downloaded it and then executing it under Visual Studio Community version 2017. I couldnt see from where it comes in the code

This error indicates that XML/HTML was returned by the response. I believe the REST services do this when they hit an error on the server, usually due to a bad request. Try watching the network traffic (fiddler works well) and inspecting the URL being used in the request and verify it is correctly formatted.

Closing as Answered & Stale