c# - using Oracle.DataAccess.Client; not found after download and install OPD.NET -


i have visual studio 2012 , oracle 11g , want connect oracle database using opd.net .i downloaded

odac112040xcopy_32bit zip file , un zip file , click intall.bat , configure.bat open visual studio 2012 , add refrence

odac112040xcopy_32bit\odp.net4\odp.net\bin\4
oracle.dataaccess.dll

and add in dal.cs file using oracle.dataaccess.client;

but type or namespace oracle not found.please guide me how solve problem

you can install odp.net via nuget. right click on solution , click on manage nuget packages , search odp.net. can choose oracle.dataaccess.dll or oracle.manageddataaccess.dll depending on need.

you can use package manager console install want

pm> install-package odp.net.managed 

if using oracle.dataaccess.dll build make sure server environments have oracle client installed. if want rid of version conflicts oracle.dataaccess.dll between build version , server better rely on oracle.manageddataaccess.dll can deploy under bin folder of application.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -