• No replies
1 Post

Pinned topic unable to load DLL 'cplex121' with C#

‏2012-08-09T17:33:15Z |
Hi all,

When I try to run my Cplex codes, right at the command:

Cplex model=new Cplex();

The following exception pops up:

"Unable to load DLL 'cplex121':The specified module could not be found"

I am coding in Visual Studio 2008 with C# using Cplex Version 12.1.

When I check the references I can see ILOG.Concert and ILOG.CPLEX. As an initial reaction to this error I also tried to add cplex121.dll which I can see under CPLEX121/bin/x86_win32. However I got the message:

"A reference to CPLEX121/bin/x86_win32/cplex121.dll" could not be added. Please make sure that the file is accesible..."

Strangest thing is I am not even able to run the examples provided by ILOG which I was able to run a couple of days ago.

I hope I was clear enough to define the problem and give the necessary information. I would appreciate any help to solve this problem.