Ooracle database connction

Posted by Eager Minds under ASP.NET on 10/7/2012 | Points: 10 | Views : 1494 | Status : [Member] | Replies : 1
this is my code for connection(for connecting to oracle using oledb )

OleDbConnection con =new OleDbConnection("provider=msdaora.1;User Id=myuserid;Password=mypassword");

but it shows error like this
ORA-06413: Connection not open.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: ORA-06413: Connection not open.

Source Error:

Line 17: OleDbDataReader dr;
Line 18: string loantype1 = "", roi = "";
Line 19: con.Open();
Line 20: dr = cmd.ExecuteReader();
Line 21: DropDownList1.Items.Add("-----select---");

Source File: d:\aspnet\bankloansite\register.aspx.cs Line: 19


Posted by: Sureshknkt7 on: 10/7/2012 [Member] Starter | Points: 25


Check Your Oledb Connection login Credentials,

Thank you,

Eager Minds, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response