Help !I'm stuck on this one. We have our own Network and use the NA service to query routes and driving directions. Routes works fine as I am able to display a resulted route without problem. The issue I'm having is when I set the returnDirections property to true. This cause the above error (title) to pop and the request fails... I tried switching our network with Esri's (The one used in the interactive sample) and it works fine. What baffles me is that route and driving directions works fine on our network when using ArcGIS for desktop ??? Anybody knows what's going on ?
RouteTask task =
new RouteTask("http://[serverName]/ArcGIS/rest/services/Entraves/NAServer/Route");
task.SolveCompleted += new System.EventHandler<RouteEventArgs>(task_SolveCompleted);
task.Failed += new System.EventHandler<TaskFailedEventArgs>(task_Failed);
RouteParameters parameters = new RouteParameters()
{
Stops = _stops,
OutSpatialReference = MyMap.SpatialReference,
ReturnDirections = true,
DirectionsLengthUnits = esriUnits.esriMeters,
UseHierarchy = false
};
task.SolveAsync(_parametreDetour);
Request :GET /ArcGIS/rest/services/Entraves/NAServer/Route/solve?returnBarriers=false&returnPolylineBarriers=false&returnPolygonBarriers=false&outSR=32187&stops=%7b%22features%22%3a%5b%7b%22attributes%22%3a%7b%22CurbApproach%22%3a2%7d%2c%22geometry%22%3a%7b%22x%22%3a236496%2c%22y%22%3a5178269%2c%22spatialReference%22%3a%7b%22wkid%22%3a32187%7d%7d%7d%2c%7b%22attributes%22%3a%7b%22CurbApproach%22%3a2%7d%2c%22geometry%22%3a%7b%22x%22%3a237764%2c%22y%22%3a5179994%2c%22spatialReference%22%3a%7b%22wkid%22%3a32187%7d%7d%7d%5d%7d&returnDirections=true&returnRoutes=true&returnStops=false&ignoreInvalidLocations=true&preserveFirstStop=true&preserveLastStop=true&useTimeWindows=false&useHierarchy=false&directionsLengthUnits=esriNAUMeters&f=json& HTTP/1.1Response :{"error":{"code":500,"message":"Error executing solve route","details":[]}}ArcGIS server manager logs:SEVERE 18 avr. 2013 15:33:28 NALayer [Route]: Could not allocate enough contiguous memory. Entraves.MapServerSEVERE 18 avr. 2013 15:33:22 Instance of the service 'Entraves.MapServer' crashed. Server