Klen Klen

Niner since 2011


  • GPS, Location API and Calling Web Services - Day 3 - Part 10

    Hi Bob,

    how do we make sure that our app does not crash when the TerraService is down?

    I'm getting EndPointNotFoundException whenever the Web service is down. The exception is thrown in publicMyApp.myTerraService.ConvertLonLatPtToNearestPlaceResponseEndConvertLonLatPtToNearestPlace(System.IAsyncResult result) which is in Reference.cs file. That means the exception is thrown before we even get to void client_ConvertLonLatPtToNearestPlaceCompleted(object sender, myTerraService.ConvertLonLatPtToNearestPlaceCompletedEventArgs e).

    How do we handle such an exception? Thank you in advance.