SWI-Prolog / contrib-swiplcs

Interface from C# to SWI-Prolog
http://www.lesta.de/Prolog/SwiPlCs/Generated/Index.html
24 stars 10 forks source link

FileLoadException #3

Open lrojas94 opened 9 years ago

lrojas94 commented 9 years ago

Hi there! No matter how many things I've tried (Downloading and referencing the library myself, using NuGet, adding bin directories to PATH), I still get the following error:

"Exception thrown: 'System.IO.FileLoadException' in mscorlib.dll

Additional information: Could not load file or assembly 'SwiPlCs, Version=1.1.60605.0, Culture=neutral, PublicKeyToken=03ea137181587c56' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

Are there any clues as to what could be causing this? Prolog Version : 7.2.2 (64-Bit).

UPDATE: Tried changing SwiPlCs64.dll to SwiPlCs.dll, and I'm now getting "System.BadImageFormatException" I've also gotten "FileNotFoundException" after I downloaded the latest version 1.1.60605.0

UPDATE 2: Actual error: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

Additional information: Could not load file or assembly 'SwiPlCs, Version=1.1.60605.0, Culture=neutral, PublicKeyToken=03ea137181587c56' or one of its dependencies. The system cannot find the file specified.

DivyaJakkidi commented 8 years ago

Hey Hi...

I am facing the same problem now with my project. Did you find the solution? If so, please let me know,

lrojas94 commented 8 years ago

If I remember correctly, my problem was that, for some reason, I needed to install the 32bit version of SWI-Prolog. I'm not entirely sure this was the problem (as it was about a year ago and for some reason I didn't take notes), but here's a project in which everything's working: https://github.com/lrojas94/ISC-317-Proyecto-Final/tree/master/My%20Smart%20Spaceship/Packages/SwiProlog