I have a .net core application and I have to use System.Data.OracleClient.dll to connect with oracle db.
Everything works when I run this in VS2017 but when I publish and try to run the part that connects to the database I get an error:
System.DllNotFoundException: Unable to load DLL 'oci': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at System.Data.OracleClient.Oci.OciCalls.OciNativeCalls.OCIEnvCreate(IntPtr& envhpp, OciEnvironmentMode mode, IntPtr ctxp, IntPtr malocfp, IntPtr ralocfp, IntPtr mfreep, Int32 xtramem_sz, IntPtr usrmempp)
Am I missing some kind of IIS module? I have x64 bit oracle in same PC.
For me finally helped following steps: