I used following code to connect oracle database from C#.
But i get this error "invalid login credentials"
using (Oracle.DataAccess.Client.OracleConnection cn = new Oracle.DataAccess.Client.OracleConnection("Data Source=abcSource;User Id=abcUserId;Password=abcPassword;")
{
cn.Open();
}
While if i try following code to connect database from C# I succeed.
using (System.Data.OracleClient.OracleConnection cn = new System.Data.OracleClient.OracleConnection("Data Source=abcSource;User Id=abcUserId;Password=abcPassword;"));
{
cn.Open();
}
I dont understand, what is happening
Please! Can anyone help me