Originally posted by: BKRORC
Hello ,
I developed a web service that use ILOG.
I run web service in Visual studio
and
I call the web service from a client.
Everyting is ok
but
I deploy web service on IIS on local machine
when I call the web service from client I get this error. what is the problem?
System.TypeInitializationException: The type initializer for 'ILOG.OPL.OplFactory' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ILOG.OPL.opl_lang_wrap' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGIloExceptionHelper' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ILOG.OPL.opl_lang_wrapPINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'opl122_dotnet': Belirtilen modül bulunamadı. (Exception from HRESULT: 0x8007007E)
at ILOG.OPL.opl_lang_wrapPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_opl_lang_wrap(ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)
at ILOG.OPL.opl_lang_wrapPINVOKE.SWIGExceptionHelper..cctor()
--- End of inner exception stack trace ---
at ILOG.OPL.opl_lang_wrapPINVOKE.SWIGExceptionHelper..ctor()
at ILOG.OPL.opl_lang_wrapPINVOKE..cctor()
--- End of inner exception stack trace ---
at ILOG.OPL.opl_lang_wrapPINVOKE.SWIGRegisterIloExceptionCallbacks_opl_lang_wrap(SWIGIloExceptionDelegate iloExceptionDelegate, SWIGIloExceptionDelegate iloOplExceptionDelegate)
at ILOG.OPL.opl_lang_wrap.SWIGIloExceptionHelper..cctor()
--- End of inner exception stack trace ---
at ILOG.OPL.opl_lang_wrap.SWIGIloExceptionHelper..ctor()
at ILOG.OPL.opl_lang_wrap..cctor()
--- End of inner exception stack trace ---
at ILOG.OPL.opl_lang_wrap.touch()
at ILOG.OPL.OplFactory..cctor()
--- End of inner exception stack trace ---
at ILOG.OPL.OplFactory..ctor()
at WebSrvcBedenAnalizi.CSServiceBedenAnalizi.NRunILog(Int32 Id) in C:\ILOG\WebService\Service\WebSrvcBedenAnalizi\WebSrvcBedenAnalizi\ServiceBedenAnalizi.asmx.cs:line 39
at WebSrvcBedenAnalizi.CSServiceBedenAnalizi.Coz(Int32 Deger) in C:\ILOG\WebService\Service\WebSrvcBedenAnalizi\WebSrvcBedenAnalizi\ServiceBedenAnalizi.asmx.cs:line 31
#DecisionOptimization#OPLusingCPLEXOptimizer