<?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 Use ArcEngine in the context of a Windows Service in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/use-arcengine-in-the-context-of-a-windows-service/m-p/617415#M4139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know if it is possible to run ArcEngine in the context of a Windows Service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using RuntimeManager.Bind(ProductCode.Engine)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] { esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new esriLicenseExtensionCode[] { }))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from "generated" LicenseInitializer and the call to InitializeApplication never seems to return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Service Control Manager says the service failed to start in a timely fashion so the service does not start.&lt;/P&gt;&lt;P&gt;I tried beefing up the service start delay in the registry, No go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Desktop Advanced concurrent license as well as ArcEngine developer license on the machine I am testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do I want to do this in a Windows Service in the first place?&lt;/P&gt;&lt;P&gt;I am doing data synchronization and using ExportReplicaDataChanges of IGeoDataServer2 to distribute GIS data changes to client apps. This piece is meant to run on a server as a Windows Service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything runs fine as a console app but not as a service.&lt;/P&gt;&lt;P&gt;Should I do this using a console app fired off by Windows Scheduler instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2016 21:06:13 GMT</pubDate>
    <dc:creator>Alaind_Espaignet1</dc:creator>
    <dc:date>2016-03-02T21:06:13Z</dc:date>
    <item>
      <title>Use ArcEngine in the context of a Windows Service</title>
      <link>https://community.esri.com/t5/developers-questions/use-arcengine-in-the-context-of-a-windows-service/m-p/617415#M4139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know if it is possible to run ArcEngine in the context of a Windows Service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using RuntimeManager.Bind(ProductCode.Engine)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] { esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new esriLicenseExtensionCode[] { }))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from "generated" LicenseInitializer and the call to InitializeApplication never seems to return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Service Control Manager says the service failed to start in a timely fashion so the service does not start.&lt;/P&gt;&lt;P&gt;I tried beefing up the service start delay in the registry, No go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Desktop Advanced concurrent license as well as ArcEngine developer license on the machine I am testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do I want to do this in a Windows Service in the first place?&lt;/P&gt;&lt;P&gt;I am doing data synchronization and using ExportReplicaDataChanges of IGeoDataServer2 to distribute GIS data changes to client apps. This piece is meant to run on a server as a Windows Service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything runs fine as a console app but not as a service.&lt;/P&gt;&lt;P&gt;Should I do this using a console app fired off by Windows Scheduler instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 21:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-arcengine-in-the-context-of-a-windows-service/m-p/617415#M4139</guid>
      <dc:creator>Alaind_Espaignet1</dc:creator>
      <dc:date>2016-03-02T21:06:13Z</dc:date>
    </item>
  </channel>
</rss>

