Originally posted by: evanr
I am having similar issues. After adding the OPL directory to my system PATH variable I now receiving a new error:
The type initializer for 'ILOG.OPL.OplFactory' threw an exception.
Unable to cast object of type 'System.TypeInitializationException' to type 'java.lang.Throwable'.
at ILOG.OPL.OplFactory..ctor()
at Warehouse.Warehouse.Main(String[] args) in C:\ILOG\OPL551\examples\dotnet\x86_windows_vs2008\Warehouse\Warehouse.cs:line 86
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Any help would be greatly appreciated!!!!
#DecisionOptimization#OPLusingCPLEXOptimizer