<?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 Re: VS 2010 .NET 3.5 - A reference to FileGDBAPI.dll could not be added in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337846#M574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;File Geodatabase API 1.1 was built with .NET Framework 4.0 and will not work with earlier versions. This is missing from the README file and will be corrected in the next release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2011 18:58:45 GMT</pubDate>
    <dc:creator>LanceShipman</dc:creator>
    <dc:date>2011-10-25T18:58:45Z</dc:date>
    <item>
      <title>VS 2010 .NET 3.5 - A reference to FileGDBAPI.dll could not be added</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337845#M573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Visual Studio 2010 with .NET 3.5 (32 bit)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without rewriting my application can I use the File Geodatabase API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to add the VS2010 and VS2008 API DLL's but I have had no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any tips would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 18:44:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337845#M573</guid>
      <dc:creator>SeanConnolly</dc:creator>
      <dc:date>2011-10-25T18:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: VS 2010 .NET 3.5 - A reference to FileGDBAPI.dll could not be added</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337846#M574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;File Geodatabase API 1.1 was built with .NET Framework 4.0 and will not work with earlier versions. This is missing from the README file and will be corrected in the next release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 18:58:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337846#M574</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2011-10-25T18:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: VS 2010 .NET 3.5 - A reference to FileGDBAPI.dll could not be added</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337847#M575</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 also getting this error - but I DO have .net framework 4 installed. Any advice, please?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 08:58:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337847#M575</guid>
      <dc:creator>SimonKaufman</dc:creator>
      <dc:date>2012-11-02T08:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: VS 2010 .NET 3.5 - A reference to FileGDBAPI.dll could not be added</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337848#M576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure if this is an option for you, but I ended up using an ArcView licence to connect to the GDB. Here is my Code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Imports ESRI.ArcGIS.esriSystem
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Imports ESRI.ArcGIS.esriSystem.esriExtensionState

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Open an ArcView License (To connect to the .GDB)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim init As New AoInitialize()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not init.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcView) = esriLicenseStatus.esriLicenseCheckedOut Then
&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; Return False
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Open a Connection to the .GDB
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim cn As OleDbConnection = FileGdbConnection(GDB_Path)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cn.Open()

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Fill a DataTable will all the information from TABLE_NAME
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim cmd As New OleDbCommand("SELECT * FROM TABLE_NAME", cn)


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Dim cmd As New FileGDBCommand("SELECT * FROM TABLE_NAME", cn)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dt As New DataTable("TABLE_NAME")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Load(cmd.ExecuteReader())

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Close Connections
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cn.Dispose()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; init.Shutdown()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Function FileGdbConnection(ByVal Path As String) As OleDbConnection

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Build the connection string.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim fileGdbStringTemplate As String = "Provider=ESRI.GeoDB.OleDB.1;Data Source={0};" &amp;amp; "Extended Properties=workspacetype=esriDataSourcesGDB.FileGDBWorkspaceFactory.1;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim connectionString As String = String.Format(fileGdbStringTemplate, Path)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Create the connection and return it.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim fileGdbConn As OleDbConnection = New OleDbConnection()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileGdbConn.ConnectionString = connectionString

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return fileGdbConn

&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337848#M576</guid>
      <dc:creator>SeanConnolly</dc:creator>
      <dc:date>2021-12-11T15:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: VS 2010 .NET 3.5 - A reference to FileGDBAPI.dll could not be added</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337849#M577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You do not need a ArcGIS license of any kind to run code written with the File Geodatabase API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 15:58:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337849#M577</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2012-11-02T15:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: VS 2010 .NET 3.5 - A reference to FileGDBAPI.dll could not be added</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337850#M578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am also getting this error - but I DO have .net framework 4 installed. Any advice, please?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post example code that returns this problem. We cannot reproduce this issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 16:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/vs-2010-net-3-5-a-reference-to-filegdbapi-dll/m-p/337850#M578</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2012-11-02T16:00:33Z</dc:date>
    </item>
  </channel>
</rss>

