Select to view content in your preferred language

Closest Facility Error 400- Invalid URL

5500
10
12-07-2010 04:23 AM
RamiSourani
Emerging Contributor
Greetings,

I am working on Closest Facility in Route Task (myRouteTask.SolveClosestFacilityAsync)
I am using the same code in http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ClosestFacility
but using my service published in our server.

The SolveClosestFacility_Failed is triggered and having the error message = "" (Just "Network Analysis error" in the message box)

I have checked ESRI Closest Facility REST layer http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/NAServer/Closest%20Facility with respect to mine,
The difference was that I don't have "Supported Operations:   Solve Closest Facility" in my REST Closest Facility layer

Am I missing some settings to enable "Supported Operations:   Solve Closest Facility"?

FYI: Below link is on my intranet just putting it for your reference:
http://gisserver/ArcGIS/rest/services/NetworkDS/NAServer/Closest%20Facility

Thank you
0 Kudos
10 Replies
JenniferNery
Esri Regular Contributor
Oh okay, then that caused the Invalid URL. The problem then is how the Network Analysis service is setup and published, not the query formed by the web API.

Please try to visit the following help doc: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//009300000055...

If you have further question about this, you might get answers from the ArcGIS Server forum.
0 Kudos