<?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 .net provider to geodatabase fails when run from windows service in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/net-provider-to-geodatabase-fails-when-run-from/m-p/713460#M19035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For a variety of operations we load geodatabase layer tables into .net datasets as datatables.&amp;nbsp; We use the data providers from esri to make this connection.&amp;nbsp; The connection is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; projConn = New OleDb.OleDbConnection("Provider=ESRI.GeoDB.OleDB.1;Data Source=" &amp;amp; daPath &amp;amp; ";Extended Properties=workspacetype=esriDataSourcesGDB.FileGDBWorkspaceFactory.1;Geometry=WKB") &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then to fill the dataset:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;layDAdbf = New OleDb.OleDbDataAdapter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layDAdbf.FillSchema(daDataset, SchemaType.Mapped, layername)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layDAdbf.Fill(daDataset, layername)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has worked for many years in a variety of product usages.&amp;nbsp; We are now trying to use this from a Windows Service.&amp;nbsp; It works in a console app, a scheduled task but not in a windows service.&amp;nbsp; It always fails on the fill statement.&amp;nbsp;&amp;nbsp; With a File Geodatabase the program just ends - no error reporting even with a try-catch.&amp;nbsp; The Windows event viewer reports the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Faulting module name: ntdll.dll, version: 6.1.7600.16695, time stamp: 0x4cc7ab86&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception code: 0xc0000005&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There appears to be many possible causes for this exception. Does anyone have any comments or suggestions - have you run into this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 15:59:42 GMT</pubDate>
    <dc:creator>BruceCheney</dc:creator>
    <dc:date>2011-11-14T15:59:42Z</dc:date>
    <item>
      <title>.net provider to geodatabase fails when run from windows service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/net-provider-to-geodatabase-fails-when-run-from/m-p/713460#M19035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For a variety of operations we load geodatabase layer tables into .net datasets as datatables.&amp;nbsp; We use the data providers from esri to make this connection.&amp;nbsp; The connection is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; projConn = New OleDb.OleDbConnection("Provider=ESRI.GeoDB.OleDB.1;Data Source=" &amp;amp; daPath &amp;amp; ";Extended Properties=workspacetype=esriDataSourcesGDB.FileGDBWorkspaceFactory.1;Geometry=WKB") &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then to fill the dataset:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;layDAdbf = New OleDb.OleDbDataAdapter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layDAdbf.FillSchema(daDataset, SchemaType.Mapped, layername)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layDAdbf.Fill(daDataset, layername)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has worked for many years in a variety of product usages.&amp;nbsp; We are now trying to use this from a Windows Service.&amp;nbsp; It works in a console app, a scheduled task but not in a windows service.&amp;nbsp; It always fails on the fill statement.&amp;nbsp;&amp;nbsp; With a File Geodatabase the program just ends - no error reporting even with a try-catch.&amp;nbsp; The Windows event viewer reports the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Faulting module name: ntdll.dll, version: 6.1.7600.16695, time stamp: 0x4cc7ab86&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception code: 0xc0000005&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There appears to be many possible causes for this exception. Does anyone have any comments or suggestions - have you run into this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 15:59:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/net-provider-to-geodatabase-fails-when-run-from/m-p/713460#M19035</guid>
      <dc:creator>BruceCheney</dc:creator>
      <dc:date>2011-11-14T15:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: .net provider to geodatabase fails when run from windows service</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/net-provider-to-geodatabase-fails-when-run-from/m-p/713461#M19036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your service run on x64? If yes you got an "The 'ESRI.GeoDB.OLEDB.1' provider is not registered on the local machine" exception.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 11:41:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/net-provider-to-geodatabase-fails-when-run-from/m-p/713461#M19036</guid>
      <dc:creator>AlexMerkulov</dc:creator>
      <dc:date>2016-09-05T11:41:16Z</dc:date>
    </item>
  </channel>
</rss>

