<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Route Task Error using Silverlight 2.0 API in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121816#M3056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved by tracking the problem using Fiddler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the stops where given to the html request as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"features":[{"attributes":{"NAME":"NoName"},"geometry":{"x":5738096.9537,"y":2909726.3224,"spatialReference":{"wkid":102113}}},{"geometry":{"x":5738296.55435,"y":2911561.78485}}],"doNotLocateOnRestrictedElements":false,"type":"features"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seams it was past from the graphics the "{"attributes":{"NAME":"Umm Ghuwailina Health Centre"}", after removing this attribute from the graphic, the process completed successfully:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"features":[{"geometry":{"x":5738096.9537,"y":2909726.3224,"spatialReference":{"wkid":102113}}},{"geometry":{"x":5738296.55435,"y":2911561.78485}}],"doNotLocateOnRestrictedElements":false,"type":"features"}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Dec 2010 16:58:42 GMT</pubDate>
    <dc:creator>RamiSourani</dc:creator>
    <dc:date>2010-12-06T16:58:42Z</dc:date>
    <item>
      <title>Route Task Error using Silverlight 2.0 API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121813#M3053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having a routing SolveAsync error "Unable to find attribute Invalid context" using Silverlight 2.0 or 2.1 API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;While the route task is completed successfully through Silverlight 1.2 API using the same code (VS 2010) on the same Network.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that I am using the same sample code found in ESRI Resource Centre:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Routing" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Routing&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kindly any advice would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (stopsgraphicsLayer.Graphics.Count &amp;gt; 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; RouteTask routeTask = LayoutRoot.Resources["MyRouteTask"] as RouteTask;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; routeTask.Url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost/ArcGIS/rest/services/NetDS/NAServer/Route" rel="nofollow" target="_blank"&gt;http://localhost/ArcGIS/rest/services/NetDS/NAServer/Route&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if (routeTask.IsBusy)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; routeTask.CancelAsync();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stopsgraphicsLayer.Graphics.RemoveAt(stopsgraphicsLayer.Graphics.Count - 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; routeTask.SolveAsync(new RouteParameters() { Stops=stopsgraphicsLayer, UseTimeWindows=false, OutSpatialReference=Map.SpatialReference });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 08:10:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121813#M3053</guid>
      <dc:creator>RamiSourani</dc:creator>
      <dc:date>2010-12-06T08:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Route Task Error using Silverlight 2.0 API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121814#M3054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are using this same sample but different service?&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Routing"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Routing&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this sample, the only time an attribute is accessed is after the RouteTask SolveCompleted. Does your service have the same attribute: "Total_Time"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or does the error come from RouteTask Failed? (Were error should have been preceded by "Route Error".)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes, to help identify the problem, running Fiddler with your application helps. Post #14 in this thread &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/14730-Area-And-Perimeter"&gt;http://forums.arcgis.com/threads/14730-Area-And-Perimeter&lt;/A&gt;&lt;SPAN&gt; might help you look for information from Fiddler. You can see if these are the expected parameters to your request and also try them out in the web browser directly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 15:29:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121814#M3054</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-12-06T15:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Route Task Error using Silverlight 2.0 API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121815#M3055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes different network service published in my server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The error comes from RouteTask_Failed and the process does not reach RouteTask_SolveCompleted, I just did not copy to the post "Route Error" just the "Unable to find attribute Invalid context".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 15:57:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121815#M3055</guid>
      <dc:creator>RamiSourani</dc:creator>
      <dc:date>2010-12-06T15:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Route Task Error using Silverlight 2.0 API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121816#M3056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved by tracking the problem using Fiddler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the stops where given to the html request as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"features":[{"attributes":{"NAME":"NoName"},"geometry":{"x":5738096.9537,"y":2909726.3224,"spatialReference":{"wkid":102113}}},{"geometry":{"x":5738296.55435,"y":2911561.78485}}],"doNotLocateOnRestrictedElements":false,"type":"features"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seams it was past from the graphics the "{"attributes":{"NAME":"Umm Ghuwailina Health Centre"}", after removing this attribute from the graphic, the process completed successfully:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"features":[{"geometry":{"x":5738096.9537,"y":2909726.3224,"spatialReference":{"wkid":102113}}},{"geometry":{"x":5738296.55435,"y":2911561.78485}}],"doNotLocateOnRestrictedElements":false,"type":"features"}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 16:58:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121816#M3056</guid>
      <dc:creator>RamiSourani</dc:creator>
      <dc:date>2010-12-06T16:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Route Task Error using Silverlight 2.0 API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121817#M3057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My solution: populate properties of route parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _routeParams.DirectionsLengthUnits = esriUnits.esriMiles;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _routeParams.ImpedanceAttribute = "Minutes";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _routeParams.OutputLines = "esriNAOutputLineTrueShape";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _routeParams.OutSpatialReference = new&amp;nbsp; ESRI.ArcGIS.Client.Geometry.SpatialReference( 4326);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _routeParams.UseHierarchy = false; // true by default and i have no Hierarchy in my network. Here was an error&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 10:47:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121817#M3057</guid>
      <dc:creator>DmitryAleshkovsky</dc:creator>
      <dc:date>2011-06-30T10:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Route Task Error using Silverlight 2.0 API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121818#M3058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yup, that 'UseHierarchy' parameter being set to true by default really caused hell.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 20:23:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/route-task-error-using-silverlight-2-0-api/m-p/121818#M3058</guid>
      <dc:creator>HoudiniSutherland</dc:creator>
      <dc:date>2011-11-08T20:23:31Z</dc:date>
    </item>
  </channel>
</rss>

