Wednesday, September 3, 2014

Gurobi for Windows 64-bit: System.BadImageFormatException - Gurobi56.NET.dll

When trying to use the Gurobi Optimizer in the 64 bit version with C# .Net I came across an error. When executing the program code the following error was thrown:  System.BadImageFormatException in Gurobi56.NET.dll. As one can read here, this is beause a DLL for ASP .Net is compiled for 32 Bit, which forces the other DLLs to run in 32 bit. That means, the 64 bit version does not seem to work for now in .Net. So install the 32 bit version to avoid the error. If the 64 bit version starts to run, I would be happy about a comment.

No comments:

Post a Comment