I am trying to use the File GDB API (1.2) .NET wrapper in an asp.net web service with no luck. The website will not load spitting out error: "Could not load file or assembly 'Esri.FileGDBAPI.DLL' or one of its dependencies. The specified module could not be found."
The .NET Wrapper works perfectly fine in a windows form application from my machine. Just to rule out the obvious:
- Esri.GileGDBAPI.dll, FileGDBAPI.dll, and FileGDBAPID.dll all are sitting in the bin of the website (along with OpenTK dll's)
- I have the prerequisite OpenTK installed
- Latest VC Runtime distributable installed.
- Website is targeting .NET 4.0
The fact that it runs fine in a windows form application gives me confidence that I have everything I need on my machine.
Does anyone have any other ideas and/or has anyone successfully used the .net wrapper in a .net webservice?
UPDATE: With the help of fuslogvw in the post I marked as the answer, I was able to to get the web service working after the directory containing the FileGDBAPI.dll and FileGDBAPID.dll was added to the 'Path' variable.