<?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: Legend and SOAP method in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749859#M19208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have seen that from live it view ( &lt;/SPAN&gt;&lt;A href="http://silverlight.sharpgis.net/ArcGISLegend.html"&gt;http://silverlight.sharpgis.net/ArcGISLegend.html&lt;/A&gt;&lt;SPAN&gt; ) that are created image with prefix '_ags_'. Arcgis server clear this images after 10 minutes . you try see your settings cleaning mode&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 May 2010 13:05:49 GMT</pubDate>
    <dc:creator>nicogis</dc:creator>
    <dc:date>2010-05-28T13:05:49Z</dc:date>
    <item>
      <title>Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749854#M19203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i've been using the SOAP method to return legend images for a while now.&amp;nbsp; i've noticed lately that on occasion, while the GetLegendInfo() method successfully executes on the server and returns to the client app the URL's pointing to the png files created on the server's arcgisoutput directory, that sometimes the png files are &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;not actually created&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp; fiddler of course will show a 404 error for each image attempted to be retrieved.&amp;nbsp; it usually happens after the method has been called on the same service several times .&amp;nbsp; maybe 20 or so over the course of 3 or 4 hours...i noticed this issue while debugging the app.&amp;nbsp; of course, debugging hits the map service and makes the SOAP call.&amp;nbsp; it will eventually right itself, but again, it may take several hours.&amp;nbsp; restarting the map service, server, or reloading the client app doesn't resolve the issue.&amp;nbsp; what would be the cause of this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 10:24:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749854#M19203</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-05-27T10:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749855#M19204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wouldn't recommend using SOAP to ArcGIS Server. The proxy generated is enourmous, and the overhead is even bigger (no caching at all). It just doesn't scale very well. Have you looked at this approach instead: &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16800"&gt;http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16800&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 15:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749855#M19204</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-05-27T15:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749856#M19205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I wouldn't recommend using SOAP to ArcGIS Server. The proxy generated is enourmous, and the overhead is even bigger (no caching at all). It just doesn't scale very well. Have you looked at this approach instead: &lt;A href="http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16800"&gt;http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16800&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that is the approach i'm using.&amp;nbsp; perhaps i worded it incorrectly in my original post.&amp;nbsp; maybe i'm mixing terms here.&amp;nbsp; GetLegendInfo() is a SOAP method and is being called on the web server, not the client, and the results (urls to the images) are sent back as a string to the client.&amp;nbsp; what i meant was that sometimes the GetLegendInfo() method doesn't actually create the png files in the arcgisserver/arcgisoutput directory, but still returns a path to them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hopefully that's correctly described now.&amp;nbsp; any guess as to why the images are not generated sometimes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 09:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749856#M19205</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-05-28T09:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749857#M19206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you checked in logs?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 12:36:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749857#M19206</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2010-05-28T12:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749858#M19207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you checked in logs?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep.&amp;nbsp; no errors on verbose.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 12:50:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749858#M19207</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-05-28T12:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749859#M19208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have seen that from live it view ( &lt;/SPAN&gt;&lt;A href="http://silverlight.sharpgis.net/ArcGISLegend.html"&gt;http://silverlight.sharpgis.net/ArcGISLegend.html&lt;/A&gt;&lt;SPAN&gt; ) that are created image with prefix '_ags_'. Arcgis server clear this images after 10 minutes . you try see your settings cleaning mode&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 13:05:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749859#M19208</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2010-05-28T13:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749860#M19209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have seen that from live it view ( &lt;A href="http://silverlight.sharpgis.net/ArcGISLegend.html"&gt;http://silverlight.sharpgis.net/ArcGISLegend.html&lt;/A&gt; ) that are created image with prefix '_ags_'. Arcgis server clear this images after 10 minutes . you try see your settings cleaning mode&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hm, not sure where that specific setting is.&amp;nbsp; but in the Server Manager, I can edit the arcgisserver/arcgisoutput directory to have a maximum file age of XX minutes, and it's currently set to 30 and the cleaning mode is set to "based on time elapsed since last accessed".&amp;nbsp; are those the settings you're referring to?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 14:00:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749860#M19209</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-05-28T14:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749861#M19210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;Cleaning&amp;gt;sliding&amp;lt;/Cleaning&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;MaxFileAge&amp;gt;600&amp;lt;/MaxFileAge&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for details see&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//0093000000mq000000.htm"&gt;http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//0093000000mq000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 14:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749861#M19210</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2010-05-28T14:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749862#M19211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;Cleaning&amp;gt;sliding&amp;lt;/Cleaning&amp;gt;&lt;BR /&gt; &amp;lt;MaxFileAge&amp;gt;600&amp;lt;/MaxFileAge&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for details see&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//0093000000mq000000.htm"&gt;http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//0093000000mq000000.htm&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;yeah, that's the same setting as in the Server Manager, and it's currently set to 30 minutes (1800 seconds in the .dat file), last accessed (sliding in the .dat file).&amp;nbsp; i don't see how this could be the cause of my problem though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 15:53:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749862#M19211</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-05-28T15:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749863#M19212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have seen the code of #gis. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that the problem is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Layer[] legend = null;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (context.Cache[soapUrl] != null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legend = context.Cache[soapUrl] as Layer[];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(legend == null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legend = LegendGenerator.GetLegend(soapUrl);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; context.Cache.Insert(soapUrl, legend, null, System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromMinutes(15), System.Web.Caching.CacheItemPriority.AboveNormal, null);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (isJson)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GenerateJson(context, legend, isPrettyJson);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If cache is used until 15 minutes, it uses legend in cache without regenerate legend image. So your 10 minutes can have an interval of 5 minutes without images because they are clean from server! In code should be set value &amp;lt;=MaxFileAge .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:51:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749863#M19212</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2021-12-12T07:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749864#M19213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hm, setting the cache in code to 9 minutes and the arcgisoutputdirectory MaxFileAge to 10 minutes didn't resolve the issue either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 11:46:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749864#M19213</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-06-02T11:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749865#M19214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i'm wondering if anyone from ESRI has a suggestion as well?&amp;nbsp; this is a bit of a show-stopper at the moment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 10:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749865#M19214</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-06-03T10:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749866#M19215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem that I say you however there is (cache).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I advise you do debug or set message (in source code) in log so you can understand where is the problem. I don't know how help you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 11:36:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749866#M19215</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2010-06-03T11:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749867#M19216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What happens if you disable caching in the REST endpoint? Or have the rest endpoint do caching of the images instead of just the URL to the images?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 13:52:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749867#M19216</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-06-03T13:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749868#M19217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What happens if you disable caching in the REST endpoint? Or have the rest endpoint do caching of the images instead of just the URL to the images?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i will try both of those.&amp;nbsp; trying the first suggestion now.&amp;nbsp; of course, with every hit to the page, a new set of legend images are added to the arcgisoutput directory (to be expected when not caching).&amp;nbsp; i'll see how it behaves over time and then try the second approach.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 17:13:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749868#M19217</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-06-03T17:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749869#M19218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just implemented this legend control (It's great, thanks a lot SharpGIS)... but I am having the EXACT same problem!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-After 10 minutes (the MaxFileAge) the legend images go away, this is expected, but why doesn't the Legend.ashx trigger these to be re-created after they have been cleaned out?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- As ciava.at mentioned, I see the Legend.ashx does something with caches at 15 min, but I am not sure what?&amp;nbsp; Sorry, not real familiar with SOAP...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- It is some random time after the images have been cleaned out until Legend.ashx will then trigger them to be re-created (one time it was about 20 min, once an hour)... not sure what triggers it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;What happens if you disable caching in the REST endpoint?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you mean by this?&amp;nbsp; The ArcGIS Server service is not caching. The REST API cache is set to be cleared daily at 1:00 am.&amp;nbsp; Are you saying to disable caching (aka cleaning) on the arcgisoutput directory?&amp;nbsp; I see how this would work, but I ideally don't want to disable this for all the other services that are running just to fix this problem... I am fine with it for the legend images, but preferably not everything else.&amp;nbsp; Maybe I can set the time up to like an hour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Or have the rest endpoint do caching of the images instead of just the URL to the images&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I see what you are saying here, but not sure how to do this, could you please elaborate a bit more?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for any help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 16:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749869#M19218</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2010-06-30T16:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749870#M19219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;What do you mean by this?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was referring to the custom rest endpoint in the sample. It's doing caching for the 10 mins, but you could just pull that code out of the sample.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 15:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749870#M19219</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-07-01T15:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749871#M19220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I was referring to the custom rest endpoint in the sample. It's doing caching for the 10 mins, but you could just pull that code out of the sample.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh, gotcha, thanks!&amp;nbsp; That did the trick!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This got me tinkering with your code a bit and learning about System.Web.Caching.Cache and from what I can tell, it was the fact that it is using a "Sliding Expiration" that it had this problem... I set it to use an "Absolute Expiration" (of 5 min just to make sure) and I think that should still allow some caching (for excessive hits) but not have this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 21:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749871#M19220</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2010-07-01T21:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749872#M19221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oops! Good find&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 22:36:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749872#M19221</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-07-01T22:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Legend and SOAP method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749873#M19222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi There,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am completely new to ArcGIS Java Script APIs and currently facing problem to display symbology / legend. i have downloaded the TOC sample from net &amp;amp; its shows Layer names properly in tree control [just like arcmap] without symbology. When checked author told that componety either expects ArcGIS 10 or application server to be in public domain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Currenl;y i am working on ArcGIS 9.3.1 with REST APIs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any body can help on this related to sample if any available using getLegendInfo &amp;amp; java script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 06:03:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-and-soap-method/m-p/749873#M19222</guid>
      <dc:creator>PANKAJBOBADE</dc:creator>
      <dc:date>2011-09-06T06:03:10Z</dc:date>
    </item>
  </channel>
</rss>

