<?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 There are insufficient resources to open another file at ESRI.ArcGIS.Carto.MapDocumentClass.Open in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/there-are-insufficient-resources-to-open-another/m-p/98830#M604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an ArcGIS SOE written in C# that opens an MXD and adds .lyr files to it.&amp;nbsp;&amp;nbsp; It then creates a PDF file for the user.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Occasionally the SOE fails and I get this message in a try/catch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are insufficient resources to open another file. (Exception from HRESULT: 0x80030004 (STG_E_TOOMANYOPENFILES))&amp;nbsp;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Carto.MapDocumentClass.Open(String sDocument, String bsPassword)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is some documentation on the internet for STG_E_TOOMANYOPENFILES,&amp;nbsp; but nothing of use that I have found yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone encounter this error and know how I can change the code I have or is this a server issue that code changes won't help resolve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Mar 2015 23:39:01 GMT</pubDate>
    <dc:creator>MeleKoneya</dc:creator>
    <dc:date>2015-03-13T23:39:01Z</dc:date>
    <item>
      <title>There are insufficient resources to open another file at ESRI.ArcGIS.Carto.MapDocumentClass.Open</title>
      <link>https://community.esri.com/t5/developers-questions/there-are-insufficient-resources-to-open-another/m-p/98830#M604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an ArcGIS SOE written in C# that opens an MXD and adds .lyr files to it.&amp;nbsp;&amp;nbsp; It then creates a PDF file for the user.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Occasionally the SOE fails and I get this message in a try/catch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are insufficient resources to open another file. (Exception from HRESULT: 0x80030004 (STG_E_TOOMANYOPENFILES))&amp;nbsp;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Carto.MapDocumentClass.Open(String sDocument, String bsPassword)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is some documentation on the internet for STG_E_TOOMANYOPENFILES,&amp;nbsp; but nothing of use that I have found yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone encounter this error and know how I can change the code I have or is this a server issue that code changes won't help resolve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 23:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/there-are-insufficient-resources-to-open-another/m-p/98830#M604</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2015-03-13T23:39:01Z</dc:date>
    </item>
  </channel>
</rss>

