User-174653821 posted
Hey hi thanks for the reply..
I did as you said one more thing is missing in your solution i was using oledb connection but your solution is not suppose for that thats why i change it in system.data.oracleClient.
now it is giving following error while opening connection
if i run application through IIS then error is
ORA-12154: TNS:could not resolve the connect identifier specified
if i run through Visual studio then error shows
Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.