<?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 Licens binding within IIS APPOOL in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/licens-binding-within-iis-appool/m-p/335841#M8800</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;I am working on a REST service hosted by IIS server. In order to get access to arc objects i need to initialize AO and bind to license&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to bind to Server license I call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; ESRI.ArcGIS.RuntimeManager.BindLicense(ESRI.ArcGIS.ProductCode.Server); &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above works ONLY if the hosting pool has 'Enable 32 bit applications' set to FALSE. The problem is that i need 32 bit apps in order to execute 3rd party dlls/assemblies that do not work with those settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively i was trying to call&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; ESRI.ArcGIS.RuntimeManager.BindLicense(ESRI.ArcGIS.ProductCode.Desktop); &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the above crashes for all cases with this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ESRI.ArcGIS.RuntimeManagerException] = {"Unable to initialize an ArcGIS 10.2 license. Could not find any of the following product license(s): Basic, Standard, Advanced"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although there is ArgGIS Desktop 10.2 Installed and authorized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect this is somehow related to identity of the application pool hosting this process because if I set the identity to my domain account it works OK, but does not work with an account that i created for testing just on that machine(even when it is a member of Administrators group).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also if i run the same code in a simple Console app its all OK. What should I do to get the license in IIS App pool without using my domain account?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jan 2014 12:22:23 GMT</pubDate>
    <dc:creator>SzymonPiskula</dc:creator>
    <dc:date>2014-01-23T12:22:23Z</dc:date>
    <item>
      <title>Licens binding within IIS APPOOL</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/licens-binding-within-iis-appool/m-p/335841#M8800</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;I am working on a REST service hosted by IIS server. In order to get access to arc objects i need to initialize AO and bind to license&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to bind to Server license I call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; ESRI.ArcGIS.RuntimeManager.BindLicense(ESRI.ArcGIS.ProductCode.Server); &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above works ONLY if the hosting pool has 'Enable 32 bit applications' set to FALSE. The problem is that i need 32 bit apps in order to execute 3rd party dlls/assemblies that do not work with those settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively i was trying to call&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; ESRI.ArcGIS.RuntimeManager.BindLicense(ESRI.ArcGIS.ProductCode.Desktop); &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the above crashes for all cases with this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ESRI.ArcGIS.RuntimeManagerException] = {"Unable to initialize an ArcGIS 10.2 license. Could not find any of the following product license(s): Basic, Standard, Advanced"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although there is ArgGIS Desktop 10.2 Installed and authorized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect this is somehow related to identity of the application pool hosting this process because if I set the identity to my domain account it works OK, but does not work with an account that i created for testing just on that machine(even when it is a member of Administrators group).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also if i run the same code in a simple Console app its all OK. What should I do to get the license in IIS App pool without using my domain account?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 12:22:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/licens-binding-within-iis-appool/m-p/335841#M8800</guid>
      <dc:creator>SzymonPiskula</dc:creator>
      <dc:date>2014-01-23T12:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Licens binding within IIS APPOOL</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/licens-binding-within-iis-appool/m-p/335842#M8801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;everything is ok in iis express , failed in iis 7.5. confused! &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/23246"&gt;IsProductCodeAvailable not working in IIS&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 07:11:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/licens-binding-within-iis-appool/m-p/335842#M8801</guid>
      <dc:creator>liangwang</dc:creator>
      <dc:date>2014-11-06T07:11:07Z</dc:date>
    </item>
  </channel>
</rss>

