I am getting the below error while making connection with database with 64 bit mode in IIS. It is working fine with 32 bit mode.
Can not obtain Oracle client information from registry. Make sure that Oracle Client Software is installed, or use Direct mode of connecting to server.
Could you tell me what is the Solution for this ?
I have written small sample code for testing Devart database connectivity like this
Code: Select all
using System;
using Devart.Data.Oracle;
namespace DevArt_Test_For_64bit
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
OracleConnection con = new OracleConnection("Here is the connection string ");
OracleCommand rowCountCommand = new OracleCommand("select Count(*) from v$version");
rowCountCommand.Connection = con;
rowCountCommand.Connection.Open();
object k = rowCountCommand.ExecuteScalar();
Response.Write(k);
}
}
}
Note I m using this version Software
Application Platform: Visual Studio 2013
.NET Framework: 4.5.1
Browser: IE 10 (Document Mode: Standards)
O.S: Windows 7, 64 bit
Oracle 11g 64 bit.