<?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: REST service gone idle throws an exception when first accessed in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190290#M4700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same error when accessing REST endpoints the first time after a long time (several hours).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this exception on every ArcGIS Server installation that I use (about 5).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that this problem only occurs when the data are on an ArcSDE geodatabase. The map services based on a file geodatabase are not throwing this error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something to configure on ArcSDE for these map services continue working after gone idle?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Oct 2010 05:57:00 GMT</pubDate>
    <dc:creator>agauch</dc:creator>
    <dc:date>2010-10-15T05:57:00Z</dc:date>
    <item>
      <title>REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190287#M4697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When accessing a map service REST endpoint with any significant number of layers (at least 30 layers or so) that has gone "idle", an error is thrown.&amp;nbsp; So, if I go to &lt;/SPAN&gt;&lt;A href="http://servername/arcgis/rest/services/servicename/MapServer"&gt;http://servername/arcgis/rest/services/servicename/MapServer&lt;/A&gt;&lt;SPAN&gt; and that service hasn't been accessed in a while, the screen will display&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;----Service 'servicename' of type 'MapServer' does not exist or is inaccessible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I wait a few seconds, I can go back to the URL and it will work fine from that point forward.&amp;nbsp; If it has gone idle, why does it not wake it up and then continue on rather than throwing an exception?&amp;nbsp; Is there any way to avoid this behavior without setting the time limit at which a map service goes idle really high?&amp;nbsp; We would still like them to go idle but have them wake up normally and be accessible from the first time it is accessed after being idle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When this happens, we get the following errors in the log:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server Context creation failed on machine servername.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Container&amp;nbsp; process 12624 has crashed on machine servername.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This happens consistently every time and only happens the first time it is accessed each day.&amp;nbsp; After that it starts up fine and is available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stephen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 19:59:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190287#M4697</guid>
      <dc:creator>StephenDavis</dc:creator>
      <dc:date>2010-08-10T19:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190288#M4698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stephen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you access the URL via browser for the first time after it has been idle, do you get the same error as when use SL/WPF API? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, you can listen to the layer's InitalizedFailed event. This is probably where the exception is thrown and you can do what you need to do inside this event handler to maybe try to Initialize again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might also be a good idea to look at the web requests/responses using Fiddler so we can narrow down where it is failing based on the sequence of events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 02:33:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190288#M4698</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-08-11T02:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190289#M4699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes we get the error when accessing it through SL as well.&amp;nbsp; I opened fiddler and tried it out, and this is what is being returned from the server:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTTP/1.1 404 Not Found&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So ArcGIS Server is choosing to not even respond.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Typically we do a SOAP call to the service before SL starts trying to load the map so we can get some values we need to initialize the application.&amp;nbsp; It occurs with a SOAP or a REST call however.&amp;nbsp; I tried putting it in a loop where if it fails it tries again and the calls are being made so fast that sometimes it will fail 10 times in a row before getting a success, however that is not an appropriate solution for us as it is not finite.&amp;nbsp; We would really like some way to prevent this error from occurring other than making the service not go idle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stephen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 13:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190289#M4699</guid>
      <dc:creator>StephenDavis</dc:creator>
      <dc:date>2010-08-11T13:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190290#M4700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same error when accessing REST endpoints the first time after a long time (several hours).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this exception on every ArcGIS Server installation that I use (about 5).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that this problem only occurs when the data are on an ArcSDE geodatabase. The map services based on a file geodatabase are not throwing this error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something to configure on ArcSDE for these map services continue working after gone idle?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 05:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190290#M4700</guid>
      <dc:creator>agauch</dc:creator>
      <dc:date>2010-10-15T05:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190291#M4701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would suggest you ask in the REST Server forums where there are a lot more people who knows the server:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/forums/11-ArcGIS-Server-REST-API"&gt;http://forums.arcgis.com/forums/11-ArcGIS-Server-REST-API&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 16:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190291#M4701</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-10-15T16:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190292#M4702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did anyone get an answer to this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same issue if I open my SL page first thing in the morning or after a long idle time. I set the InitializationFailed event to try to initialize the service but to no avail, maybe not enough time between initial failure and the second attempt. I also went to the service properties in ArcCatalog and set it to check the connection every 10 minutes, still the same. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked over in the REST forum and didn't see it addressed there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 10:58:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190292#M4702</guid>
      <dc:creator>KeithGanzenmuller</dc:creator>
      <dc:date>2011-02-09T10:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190293#M4703</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;SPAN&gt;I have the same problem. Every day the firts 3 query on the table are with error 500. The fourth is ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the arcgis server I can see this error: Server Context creation failed for the service that I've tried to query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have an idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 09:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190293#M4703</guid>
      <dc:creator>GiosiaPoma</dc:creator>
      <dc:date>2011-04-28T09:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190294#M4704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please look at these threads, they might help you resolve your problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/28246-Map-services-become-unresponsive?highlight=application+pool+timeout"&gt;http://forums.arcgis.com/threads/28246-Map-services-become-unresponsive?highlight=application+pool+timeout&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/18470-Sleeping-Map-service-issue-with-ArcGIS-10"&gt;http://forums.arcgis.com/threads/18470-Sleeping-Map-service-issue-with-ArcGIS-10&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/18566-Services-fall-asleep?highlight=application+pool+timeout"&gt;http://forums.arcgis.com/threads/18566-Services-fall-asleep?highlight=application+pool+timeout&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 12:39:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190294#M4704</guid>
      <dc:creator>DarinaTchountcheva</dc:creator>
      <dc:date>2011-04-28T12:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190295#M4705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a VB script that calls the rest endpoints of my production services first thing in the morning. I put the script into a Scheduled Task to be called in the morning and again every 30 minutes. It works perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you'd like it, I can supply the code here. I got it from somewhere in the ESRI support forum land, so it may have already been linked here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 12:53:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190295#M4705</guid>
      <dc:creator>ErikEngstrom</dc:creator>
      <dc:date>2011-04-29T12:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190296#M4706</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;My experience about some error of first access are solved by checking the option: "Periodically check and repair data connections for idle instances" with 30 minutes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I have found is that my db administrator stop the database for backup issue and after that the service don't work. With this option all is ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: the service is for editing data. Service with read only data are oks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 05:06:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190296#M4706</guid>
      <dc:creator>GiosiaPoma</dc:creator>
      <dc:date>2011-05-25T05:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190297#M4707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;hi!&lt;BR /&gt;&lt;BR /&gt;My experience about some error of first access are solved by checking the option: "Periodically check and repair data connections for idle instances" with 30 minutes.&lt;BR /&gt;&lt;BR /&gt;What I have found is that my db administrator stop the database for backup issue and after that the service don't work. With this option all is ok.&lt;BR /&gt;&lt;BR /&gt;Note: the service is for editing data. Service with read only data are oks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a issue present still after upgrading to SP2. Even after setting all services with the option "Periodically check and repair data connections for idle instances" with 30 minutes. Does not help if the server has been idle over night.. in the morning whoever is the first to access the SL API application is sure to get a splat ERROR white page.. even though I tried to handle the error from code by layer initialized event..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 05:07:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190297#M4707</guid>
      <dc:creator>vipulsoni</dc:creator>
      <dc:date>2011-05-26T05:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190298#M4708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you provide the scripts here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 18:19:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190298#M4708</guid>
      <dc:creator>mohankumarcn</dc:creator>
      <dc:date>2011-07-14T18:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: REST service gone idle throws an exception when first accessed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190299#M4709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have a VB script that calls the rest endpoints of my production services first thing in the morning. I put the script into a Scheduled Task to be called in the morning and again every 30 minutes. It works perfectly.&lt;BR /&gt;&lt;BR /&gt;If you'd like it, I can supply the code here. I got it from somewhere in the ESRI support forum land, so it may have already been linked here.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Erik&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will appreciate if you can post the code. Thanks very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ishara&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Feb 2013 21:30:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rest-service-gone-idle-throws-an-exception-when/m-p/190299#M4709</guid>
      <dc:creator>IsharaKotiah</dc:creator>
      <dc:date>2013-02-03T21:30:06Z</dc:date>
    </item>
  </channel>
</rss>

