The IndexOutofRangeException here means the RouteTask has completed with an empty result, index 0 was not accessible. It's hard to tell were it may have failed but if you try to run Fiddler with your application, you might be able to see the web requests. Check the parameters sent with your request and try to see if making this request through your web browser can yield to the same empty result.