Originally posted by: Marcelo.cl
Hi, all. I would like to ask you some help with a problem:
I had to change my computer, and the new one is with Windows 7 x64.
Since I changed my O.S. from Windows 7 32-bits to Windows 7 x64, my Cplex Interfaces .Net Applications doesnt work anymore.
I'm using OPL 6.3 Analyst Studio and I have a .net console application that executes my cplex models and get the results.
But when I run my application I receive the following error:
An unhandled exception of type 'System.TypeInitializationException' occurred in Planificacion.exe Additional information: The type initializer for 'ILOG.OPL.OplFactory' threw an exception. The type initializer for 'ILOG.OPL.opl_lang_wrap' threw an exception If I execute the examples that come with OPL, I receive exactly the same error.
Examples located at C:\ILOG\OPL63\examples\opl_interfaces\dotnet\x86_.net2005_8.0\VisualBasic
My configuration is the following:
-
Windows 7 x64
-
OPL 6.3 Analyst Studio (32 bits)
-
Visual Studio 2005, .Net Framework 2.0, Language: Visual basic
As I said before, all worked fine with Windows 7 32 bits.
I tried copying .dll to bin folder of my application, but it doesnt work, too.
My PATH enviroment variable have the following value:
c:\ILOG\OPL63\bin\x86_win32 I tried installing Cplex Studio 12.2 Preview version (32 bits) and I had the same problem (same error). I cant even run the interface examples succesfully (Cutstock for example).
I hope you can help me.
Thanks in advance.
Marry Christmas.
#DecisionOptimization#OPLusingCPLEXOptimizer