ThinkGeo.com    |     Documentation    |     Premium Support

Mismatch processor architecture with FileGDB Nuget

I tried installing the ThinkGeo.FileGeoDatabase Nuget Package. 14.4.0 Beta005
I get following warning:

There was a mismatch between the processor architecture of the project being built “MSIL” and the processor architecture of the reference “.nuget\packages\thinkgeo.dependency.filegeodatabase\14.0.0\lib\net462\Esri.FileGDBAPI.dll”, “AMD64”. This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

When trying to run the project, I get following FusionLog:

=== State information before binding ===
LOG: DisplayName = Esri.FileGDBAPI, Version=1.5.2.308, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86
(Fully-specified)
LOG: Appbase = file://bin/Debug/
LOG: Original PrivatePath = NULL
LOG: DynamicBase = NULL
LOG: CacheBase = NULL
LOG: AppName = Viewer.exe
Call of Assembly : ThinkGeo.FileGeoDatabase, Version=14.0.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207.

LOG: This binding starts in the default load context.
LOG: The application configuration file is used: \bin\Debug\Agk_Viewer.exe.Config
LOG: The host configuration file is used:
LOG: The computer configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config is used.
LOG: Reference according to the policy: Esri.FileGDBAPI, Version=1.5.2.308, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86
LOG: The search in the GAC was not successful.
LOG: Download from new URL file:file://bin/Debug/Esri.FileGDBAPI.DLL.
LOG: The assembly download has been performed. File setup is started: \bin\Debug\Esri.FileGDBAPI.dll.
LOG: The setup phase executed by the source begins.
LOG: The assembly name is: Esri.FileGDBAPI, Version=1.5.2.308, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86.
ERR: Invalid assembly platform or ContentType in file (hr = 0x8007000b).
ERR: The setup phase executed by the source failed with hr = 0x8007000b.
ERR: The assembly setup could not be completed (hr = 0x8007000b).

Do you have any idea how to handle this?
Thank you!

It’s because the ThinkGeo FileGDB is x64 only, change the build platform from “Any CPU” to “x64” will get rid of the warning. Even it’s “Any CPU”, it will not have the runtime error if it’s built in x64.

So did you build the project in x86? any chance you can use x64 to build your application?

Hi Ben, thanks, our application sadly needs to run on x32 and x64 Windows Systems. Any chance we can get an Any CPU runtime of ThinkGeo FileGDB?

If I am mistaken please let me know, this is not my forte :slight_smile:

OK Julian, I’ve added to the Todo list, aiming for the release v14.3.2.

1 Like