1

I have created an Network Analyst Routing sample. On Arcmap it works fine when creating a route on the data.

However, when I create Network Analyst service through ArcGIS Server, using this REST service Silverlight sample gives this error:

Routing error: Unable to complete operation unable to find attribute invalid Context

Any help please.

3
  • I have the same error. If you find anything out post back here or on: forums.arcgis.com/threads/… thanks. i've been working on this one for days.....
    – user16620
    Mar 28, 2013 at 18:14
  • 2
    Is the Network Analyst for ArcGIS Server extension licensed on your server? Mar 29, 2013 at 17:45
  • Sorry I didn't see your answer Yes the Network Analyst for ArcGIS Server extension is licensed, and finally I found a solution using Geoprocessing task.
    – Geomak
    Apr 1, 2013 at 13:05

2 Answers 2

1
+50

i have made a model using model builder like described here , then i published the model on arcgis server, before calling it using silverlight.

3
  • 1
    Was this supposed to be a comment, or did it solve your issue? Apr 1, 2013 at 14:21
  • i think this answer had solved her issue
    – geogeek
    Apr 1, 2013 at 16:51
  • i have solved this problem using geoprocessing task
    – Geomak
    Apr 2, 2013 at 15:19
1

come across and solved the problem just now
cause RouteParameters 's default value of UseHierarchy is True
just set UseHierarchy to False

RouteParameters parameters = new RouteParameters();
parameters.Stops = stopsGraphicsLayer;
parameters.OutSpatialReference = MyMap.SpatialReference;
parameters.UseHierarchy = false;
routeTask.SolveAsync(parameters);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.