tag:blogger.com,1999:blog-5295746446529817470.post4004494303119930123..comments2023-05-09T16:29:24.130+02:00Comments on Dotnet by Example: A HoloLens airplane tracker 4–Reading data and positioning airplanesJoost van Schaikhttp://www.blogger.com/profile/02182444268071162776noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-5295746446529817470.post-88798707629264123482016-12-06T12:02:47.552+01:002016-12-06T12:02:47.552+01:00@Rutger, thanks for you comment. This is very odd ...@Rutger, thanks for you comment. This is very odd indeed, as I definitely don't do that in my app. That is what the mobile client is supposed to do (amongst other things). Joost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-64868845726692925772016-12-06T09:38:09.007+01:002016-12-06T09:38:09.007+01:00Hi Joost,
Very cool tutorial!
I've been fol...Hi Joost, <br /><br />Very cool tutorial!<br /><br />I've been following the steps in order to recreate your solution. When I finished this part I ran the solution in the emulator, but couldn't see any aircraft. <br />I debugged the solution and noticed that the calls to the FlightService were giving errors. I then used Fiddler to see what it was sending and it gave me a clearer error message, turns out it was missing the ZUMO-API-VERSION as parameter. <br /><br />With a small tweak to the GetFlights method I got it to work again:<br /><br /> public async Task> GetFlights()<br /> {<br /> var zumoParameter = new Dictionary {{"ZUMO-API-VERSION", "2.0.0"}};<br /> var result = await _client.InvokeApiAsync>(<br /> "FlightData", HttpMethod.Get, zumoParameter);<br /> return result;<br /> }<br /><br />I'm not really sure why my version didn't work without the extra parameter, but hopefully it will help someone else who's having trouble with getting the flight data.<br /><br /> Rutgerhttps://www.blogger.com/profile/13521756851165040916noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-87998871373812519772016-11-24T07:52:50.252+01:002016-11-24T07:52:50.252+01:00Hi. I'm not sure. Have you tried running it in...Hi. I'm not sure. Have you tried running it in debug and see what the exact error is?Joost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-68099210841649984112016-11-22T12:49:59.290+01:002016-11-22T12:49:59.290+01:00Love this example. Had watched Windows Weekly so w...Love this example. Had watched Windows Weekly so wanting to read your code and then stumbled across it when looking for examples.<br />Downloaded from Github and changed to my Azure URL. Get this message running on the simulator. Any idea what would cause this?<br />Thanks, Rapuke<br /><br />Exception thrown: 'Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException' in Microsoft.WindowsAzure.Mobile.dll<br />Exception thrown: 'Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException' in mscorlib.ni.dll<br />Exception thrown: 'Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException' in mscorlib.ni.dll<br />Exception thrown: 'Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException' in mscorlib.ni.dll<br />Exception thrown: 'Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException' in mscorlib.ni.dll<br />Exception thrown: 'Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException' in mscorlib.ni.dll<br />Exception thrown: 'Newtonsoft.Json.JsonReaderException' in Newtonsoft.Json.dllRapukehttps://www.blogger.com/profile/01810206420241578017noreply@blogger.com