<?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 Gets the error 'Server Error - The operation has timed out Code: 500'. in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/gets-the-error-server-error-the-operation-has/m-p/295603#M11380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Gets the error 'Server Error - The operation has timed out Code: 500' after issuing multiple requests for an attachment in a feature service from REST.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've reproduced this on more than one machine and this case isn't data or machine specific. It can be easily reproduced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) ArcGIS Server/ArcSDE Geodatabase 10 sp5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) SQL Server 2008 R2 SP2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Feature Service with features that have attachments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you keep accessing the attachments from the services directory, after a few requests (about 20 - 30), the attached error shows up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Attachments are accessed using the below URL and clicking on the link to the attachment returned.&lt;/SPAN&gt;&lt;BR /&gt;&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;servername&amp;gt;/ArcGIS/rest/services/attachments/FeatureServer/0/1/attachments/1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To repeat the request, click back on the web browser and click the attachment again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A temporary fix is to set the fixed number of requests in recycling the application pool in IIS to a small value. The drawback of this fix is that the request after the recycle value will be slow. For eg: if the recycling value is kept at 5, the 6th, 11th, 16, 21st ... requests will take a long time for a response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This recycle value can be set in IIS &amp;gt; Application Pools &amp;gt; right click on ArcGISServicesAppPool &amp;gt; Click recycling &amp;gt; set the fixed number of requests to a value (I've set 5).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since this issue seems to be related to how IIS works, I was hoping to get ideas on what could be done to fix this issue for good.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2012 01:09:18 GMT</pubDate>
    <dc:creator>DavidWade1</dc:creator>
    <dc:date>2012-11-30T01:09:18Z</dc:date>
    <item>
      <title>Gets the error 'Server Error - The operation has timed out Code: 500'.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gets-the-error-server-error-the-operation-has/m-p/295603#M11380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Gets the error 'Server Error - The operation has timed out Code: 500' after issuing multiple requests for an attachment in a feature service from REST.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've reproduced this on more than one machine and this case isn't data or machine specific. It can be easily reproduced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) ArcGIS Server/ArcSDE Geodatabase 10 sp5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) SQL Server 2008 R2 SP2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Feature Service with features that have attachments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you keep accessing the attachments from the services directory, after a few requests (about 20 - 30), the attached error shows up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Attachments are accessed using the below URL and clicking on the link to the attachment returned.&lt;/SPAN&gt;&lt;BR /&gt;&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;servername&amp;gt;/ArcGIS/rest/services/attachments/FeatureServer/0/1/attachments/1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To repeat the request, click back on the web browser and click the attachment again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A temporary fix is to set the fixed number of requests in recycling the application pool in IIS to a small value. The drawback of this fix is that the request after the recycle value will be slow. For eg: if the recycling value is kept at 5, the 6th, 11th, 16, 21st ... requests will take a long time for a response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This recycle value can be set in IIS &amp;gt; Application Pools &amp;gt; right click on ArcGISServicesAppPool &amp;gt; Click recycling &amp;gt; set the fixed number of requests to a value (I've set 5).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since this issue seems to be related to how IIS works, I was hoping to get ideas on what could be done to fix this issue for good.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 01:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gets-the-error-server-error-the-operation-has/m-p/295603#M11380</guid>
      <dc:creator>DavidWade1</dc:creator>
      <dc:date>2012-11-30T01:09:18Z</dc:date>
    </item>
  </channel>
</rss>

