<?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: Could not load file or assembly 'Esri.FileGDBAPI.dll' or one of its dependencies. in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/could-not-load-file-or-assembly-esri-filegdbapi/m-p/747616#M1177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to put Esri.FileGDBAPI.dll and FileGDBAPI.dll in the same folder as your executable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you examine all of the sample programs that we supply, you will see that there is a post-build step in each project which performs this copy operation.&amp;nbsp; A good starting point for your own applications is to copy and modify one of the sample projects so that you don't have to figure out how to do this yourself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 16:08:00 GMT</pubDate>
    <dc:creator>DavidSousa</dc:creator>
    <dc:date>2013-07-19T16:08:00Z</dc:date>
    <item>
      <title>Could not load file or assembly 'Esri.FileGDBAPI.dll' or one of its dependencies.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/could-not-load-file-or-assembly-esri-filegdbapi/m-p/747615#M1176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I downloaded v1.3 of the API onto my Windows 7 32bit computer with VS2012.&amp;nbsp; I created a simple console application, set the target framework to 4.5, added a reference to the ESRI.FileGDBAPI.dll, and added the following line of code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Geodatabase geo = Geodatabase.Open("C:/arcgisserver/filedb/New10.gdb");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I attempt to run the app, I am getting the above error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 14:26:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/could-not-load-file-or-assembly-esri-filegdbapi/m-p/747615#M1176</guid>
      <dc:creator>JasonCleaver</dc:creator>
      <dc:date>2013-07-19T14:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'Esri.FileGDBAPI.dll' or one of its dependencies.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/could-not-load-file-or-assembly-esri-filegdbapi/m-p/747616#M1177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to put Esri.FileGDBAPI.dll and FileGDBAPI.dll in the same folder as your executable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you examine all of the sample programs that we supply, you will see that there is a post-build step in each project which performs this copy operation.&amp;nbsp; A good starting point for your own applications is to copy and modify one of the sample projects so that you don't have to figure out how to do this yourself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 16:08:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/could-not-load-file-or-assembly-esri-filegdbapi/m-p/747616#M1177</guid>
      <dc:creator>DavidSousa</dc:creator>
      <dc:date>2013-07-19T16:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Could not load file or assembly 'Esri.FileGDBAPI.dll' or one of its dependencies.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/could-not-load-file-or-assembly-esri-filegdbapi/m-p/747617#M1178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was having issues compiling the sample c# projects as well.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the build events, I see a pre-build event the executes the CopyFileGDBAPI.bat script, and I can see the dlls in the bin directory after I build the project.&amp;nbsp; Unfortunately, I was getting this error message &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Could not load file or assembly 'Esri.FileGDBAPI.dll' or one of its dependencies.&amp;nbsp; is not a valid Win32 application"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I made sure I the solution and all projects were x86, and then tried to debug it again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also read the ReadMe.txt file to make sure I wasn't missing anything.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I can get the project to compile, is by adding a the FileGDBAPI.dll to the project, and have the dll copied to the bin directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this was my last resort, posting a question on this forum after hours of wrestling with it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After I posted this question, I was able to find an earlier posting that mentioned the FileGDBAPI.dll had to be in the same directory as the executable.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 16:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/could-not-load-file-or-assembly-esri-filegdbapi/m-p/747617#M1178</guid>
      <dc:creator>JasonCleaver</dc:creator>
      <dc:date>2013-07-19T16:46:06Z</dc:date>
    </item>
  </channel>
</rss>

