<?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 How do I clear legend after restarting services? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-clear-legend-after-restarting-services/m-p/733855#M18783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I using the toolbox legend control in my app and today I had an issue where some of the layers in a particular service where broken due to a network error.&amp;nbsp;&amp;nbsp;&amp;nbsp; The caused the Legend to cache the layer in a broken state which resulted certain layers no showing.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I restarted the service in ArcCatalog and even restarted the ArcGISServicesAppPool Application Pool in IIS but the Legend would not update.&amp;nbsp;&amp;nbsp; I then tried to restart the Application Pool associated with the Map Application, but this still didn't work.&amp;nbsp;&amp;nbsp; I then tried to go into the application and set DisableClientCaching to true on the problem DynamicService, but this still did fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, I did an IISReset command.&amp;nbsp;&amp;nbsp; This fixed the problem and caused the layer to appear again, but took out several other application I have running on this box (due to the IISReset).&amp;nbsp;&amp;nbsp; This server is running&amp;nbsp; ArcGIS Server and Desktop 10 with Service Pack 1.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;Is there anyway to clear the Legend control without doing an IISReset?&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 23:21:24 GMT</pubDate>
    <dc:creator>GregoryDillon</dc:creator>
    <dc:date>2011-11-14T23:21:24Z</dc:date>
    <item>
      <title>How do I clear legend after restarting services?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-clear-legend-after-restarting-services/m-p/733855#M18783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I using the toolbox legend control in my app and today I had an issue where some of the layers in a particular service where broken due to a network error.&amp;nbsp;&amp;nbsp;&amp;nbsp; The caused the Legend to cache the layer in a broken state which resulted certain layers no showing.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I restarted the service in ArcCatalog and even restarted the ArcGISServicesAppPool Application Pool in IIS but the Legend would not update.&amp;nbsp;&amp;nbsp; I then tried to restart the Application Pool associated with the Map Application, but this still didn't work.&amp;nbsp;&amp;nbsp; I then tried to go into the application and set DisableClientCaching to true on the problem DynamicService, but this still did fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, I did an IISReset command.&amp;nbsp;&amp;nbsp; This fixed the problem and caused the layer to appear again, but took out several other application I have running on this box (due to the IISReset).&amp;nbsp;&amp;nbsp; This server is running&amp;nbsp; ArcGIS Server and Desktop 10 with Service Pack 1.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;Is there anyway to clear the Legend control without doing an IISReset?&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 23:21:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-clear-legend-after-restarting-services/m-p/733855#M18783</guid>
      <dc:creator>GregoryDillon</dc:creator>
      <dc:date>2011-11-14T23:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear legend after restarting services?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-clear-legend-after-restarting-services/m-p/733856#M18784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If it's a pure legend control issue, you can call the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client.Toolkit~ESRI.ArcGIS.Client.Toolkit.Legend~Refresh.html"&gt;Refresh &lt;/A&gt;&lt;SPAN&gt;method of the legend control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But likely, it's rather an issue with the metadata cache. In this case, you can clear the cache using this rest end point &lt;/SPAN&gt;&lt;A href="http://&amp;lt;yourserver&amp;gt;/ArcGIS/rest/admin/cache/clear"&gt;http://&amp;lt;yourserver&amp;gt;/ArcGIS/rest/admin/cache/clear&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 05:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-clear-legend-after-restarting-services/m-p/733856#M18784</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-11-15T05:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear legend after restarting services?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-clear-legend-after-restarting-services/m-p/733857#M18785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you!&amp;nbsp;&amp;nbsp; I believe the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;yourserver&amp;gt;/ArcGIS/rest/admin/cache/clear method is what I was looking for.&amp;nbsp;&amp;nbsp; I'll have to try it next time it happens.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 15:03:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-clear-legend-after-restarting-services/m-p/733857#M18785</guid>
      <dc:creator>GregoryDillon</dc:creator>
      <dc:date>2011-11-15T15:03:23Z</dc:date>
    </item>
  </channel>
</rss>

