<?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 SolveClosestFacility - problem when no Facilities in request in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/solveclosestfacility-problem-when-no-facilities-in/m-p/480619#M12410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use the SolveClosestFacility function on the RouteTask. I have service with a Closest Facility Layer, and everything works fine using the REST-api. In the NA service layer, I have already added all my facilities. I do not want to add these at run time in each request. Using the REST-api, I can simply leave out the "facilities" input parameter, and the pre-added facilities are used. But when I don't set Facilities on the RouteClosestFacilityParameters object, I get "Object reference not set to an instance of an object.".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-JJ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Aug 2010 06:24:55 GMT</pubDate>
    <dc:creator>Joachim_EckboJuell</dc:creator>
    <dc:date>2010-08-12T06:24:55Z</dc:date>
    <item>
      <title>SolveClosestFacility - problem when no Facilities in request</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/solveclosestfacility-problem-when-no-facilities-in/m-p/480619#M12410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use the SolveClosestFacility function on the RouteTask. I have service with a Closest Facility Layer, and everything works fine using the REST-api. In the NA service layer, I have already added all my facilities. I do not want to add these at run time in each request. Using the REST-api, I can simply leave out the "facilities" input parameter, and the pre-added facilities are used. But when I don't set Facilities on the RouteClosestFacilityParameters object, I get "Object reference not set to an instance of an object.".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-JJ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 06:24:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/solveclosestfacility-problem-when-no-facilities-in/m-p/480619#M12410</guid>
      <dc:creator>Joachim_EckboJuell</dc:creator>
      <dc:date>2010-08-12T06:24:55Z</dc:date>
    </item>
  </channel>
</rss>

