Select to view content in your preferred language

A procedure imported by 'Esri.FileGDBAPI.DLL' could not be loaded.

3680
1
08-08-2012 10:16 AM
BrianBeck
Regular Contributor
I am developing and ASP.Net MVC3 web application.  As part of the application, I would like my users to be able to upload a file geodatabase and read the contents of a specified table into a SQL Server database.

I created a new Class Library project within my solution to store all the File Geodatabase related code, but when I run my solution in debug mode, I get the following message:

[ATTACH=CONFIG]16779[/ATTACH]

I'm not sure where to go from here.

Thanks for your help.
0 Kudos
1 Reply
JohnStephens
Regular Contributor
I'm totally late for you, but maybe this can help someone else.  I don't know why you have to set up the DLL this way, but:

You need to go into the bin folder of the FileGDB files you downloaded.  Copy the 3 DLLs and paste them into the bin folder of your project in the solution explorer.  If the bin folder in your project is not showing, click the "Show All Files" button at the top of the solution explorer.  Then, expand the Debug folder under there and add those 3 DLLs if they are not there AND the Esri.FileGDBAPI.pdb from the FileGDB files bin folder you downloaded.  Make sure all those files are next to each other in the debug folder.  It should then load the files correctly.
0 Kudos