<?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 Using ArcObjects in a WCF Method called in a Windows Service in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-a-wcf-method-called-in-a/m-p/689844#M18531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I add ArcGIS License Checking to a Windows Service?&amp;nbsp; When I go to Project-&amp;gt;Add ArcGIS License Checking and specify the desired licenses to check for the Windows Service fails to start with the following error: [ATTACH=CONFIG]19537[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Removing the ArcGIS License checking allows the service to start and run, but then I run into problems elsewhere...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once running the Windows Service basically sits and waits for a remote request to come from a webserver and when it receives this request it launches a WCF class that contains the actual ArcObject code needed to generate a shapefile (it connects to an ArcSDE workspace ... all that fun stuff).&amp;nbsp; The problem is that without having the ArcGIS license checking my ArcObjects code generates a COM Exception of 0x80040111 which is of course the exception you get when you try to run ArcObjects without having initialized a license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought about trying to add the ArcGIS License Checking to the WCF Class, but that class has no Sub Main().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What should I be doing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2012 21:45:12 GMT</pubDate>
    <dc:creator>SamuelHenderson</dc:creator>
    <dc:date>2012-11-26T21:45:12Z</dc:date>
    <item>
      <title>Using ArcObjects in a WCF Method called in a Windows Service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-a-wcf-method-called-in-a/m-p/689844#M18531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I add ArcGIS License Checking to a Windows Service?&amp;nbsp; When I go to Project-&amp;gt;Add ArcGIS License Checking and specify the desired licenses to check for the Windows Service fails to start with the following error: [ATTACH=CONFIG]19537[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Removing the ArcGIS License checking allows the service to start and run, but then I run into problems elsewhere...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once running the Windows Service basically sits and waits for a remote request to come from a webserver and when it receives this request it launches a WCF class that contains the actual ArcObject code needed to generate a shapefile (it connects to an ArcSDE workspace ... all that fun stuff).&amp;nbsp; The problem is that without having the ArcGIS license checking my ArcObjects code generates a COM Exception of 0x80040111 which is of course the exception you get when you try to run ArcObjects without having initialized a license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought about trying to add the ArcGIS License Checking to the WCF Class, but that class has no Sub Main().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What should I be doing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 21:45:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-a-wcf-method-called-in-a/m-p/689844#M18531</guid>
      <dc:creator>SamuelHenderson</dc:creator>
      <dc:date>2012-11-26T21:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcObjects in a WCF Method called in a Windows Service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-a-wcf-method-called-in-a/m-p/689845#M18532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to do the same thing.&amp;nbsp; Did you ever get this working?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Edit] -- My main issue was building a WCF service with 32bit ArcObjects as dependencies on a 64 bit machine.&amp;nbsp; I had to use this command "corflags /32BIT+ /FORCE WcfSvcHost.exe" to allow the WcfSvcHost to debug in 32bit mode.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 20:42:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcobjects-in-a-wcf-method-called-in-a/m-p/689845#M18532</guid>
      <dc:creator>TimSexton1</dc:creator>
      <dc:date>2013-08-16T20:42:54Z</dc:date>
    </item>
  </channel>
</rss>

