locked
CalculateRoute - An error occurred while processing the request RRS feed

  • Question

  • Hello,
    I am using Route Service to get a route. When I call the CalculateRoute function I get an error.

    System.Web.Services.Protocols.SoapException: An error occurred while processing the request.   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

    I know that I am getting a valid token since I have used that token to get directions in the AJAX control. Do you know what could cause this error?

    I am developing my project on Visual Studio 2005 .net 2.0 framework.

    Please help.
    Thanks!
    Geeta

    Tuesday, March 17, 2009 1:46 PM

Answers

  • I'm not sure that the Route Service works as a .NET 2.0 Web Service - you have to use a .NET 3.0+ Service Reference (which you can do under VS2008). See this thread for another example of the same problem: http://social.msdn.microsoft.com/Forums/en-US/vemapcontroldev/thread/2c4876cb-41de-44e4-9ffb-a60e93be2f66/
    Beginning Spatial with SQL Server http://www.apress.com/book/view/1430218290
    Tuesday, March 17, 2009 4:30 PM
    Moderator