c# - Oracle.DataAccess.Client.OracleConnection Exception IIS 500 Error -
i'm getting error 500 on iis references oracle data connections. i've attached stack trace. i've verified have oracle client installed , dlls exist within application directory. i'm running windows server 2012 iis 8.0. attached stack trace...
{"message":"an error has occurred.","exceptionmessage":"the type initializer 'oracle.dataaccess.client.oracleconnection' threw exception.","exceptiontype":"system.typeinitializationexception","stacktrace":" @ oracle.dataaccess.client.oracleconnection..ctor(string connectionstring)\r\n @ cecc.ami.controllers.getblinkscontroller.getamidata(string startdatestring, string enddatestring)\r\n @ cecc.ami.controllers.getblinkscontroller.getblinks(string startdate, string enddate)\r\n @ lambda_method(closure , object , object[] )\r\n @ system.web.http.controllers.reflectedhttpactiondescriptor.actionexecutor.<>c__displayclass10.<getexecutor>b__9(object instance, object[] methodparameters)\r\n @ system.web.http.controllers.reflectedhttpactiondescriptor.actionexecutor.execute(object instance, object[] arguments)\r\n @ system.web.http.controllers.reflectedhttpactiondescriptor.executeasync(httpcontrollercontext controllercontext, idictionary`2 arguments, cancellationtoken cancellationtoken)\r\n--- end of stack trace previous location exception thrown ---\r\n @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task)\r\n @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task)\r\n @ system.web.http.controllers.apicontrolleractioninvoker.<invokeactionasynccore>d__0.movenext()\r\n--- end of stack trace previous location exception thrown ---\r\n @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task)\r\n @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task)\r\n @ system.web.http.controllers.actionfilterresult.<executeasync>d__2.movenext()\r\n--- end of stack trace previous location exception thrown ---\r\n @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task)\r\n @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task)\r\n @ system.web.http.dispatcher.httpcontrollerdispatcher.<sendasync>d__1.movenext()","innerexception":{"message":"an error has occurred.","exceptionmessage":"the provider not compatible version of oracle client","exceptiontype":"oracle.dataaccess.client.oracleexception","stacktrace":" @ oracle.dataaccess.client.oracleinit.initialize()\r\n @ oracle.dataaccess.client.oracleconnection..cctor()"}}
i'm sure i've got something configured wrong. want site able moved around dev production , i've set reference of oracle.dataaccess copy local , copy bin folder understanding should referencing dll not on server. have client installed on server @ version 11g perhaps i'm referencing wrong. this 32bit application running on 64 bit version of server 12.
you using incompatible provider version of oracle
client have installed. that's posted stack trace says pointed below
"exceptionmessage":"the provider not compatible version of oracle client"
check config
file , correct accordingly.
Comments
Post a Comment