i have this problem for long time and not able to solve> Hope i get the solution here. I have installed Oracle express edition 11 g and i have created the table-space and the schema. Then , i have installed the ASP.NET. when i compile the project it shows error with the conn.open().
i tried this connection
private void clidrop()
{
string oradb = "DATA SOURCE=xe;USER ID=AMC; password=amc;";
OracleConnection conn = new OracleConnection(oradb);
conn.Open();
string smst = "select *FROM TECHNOVA_SMS_CLNT_MTR";
OracleCommand cmdt = new OracleCommand(smst, conn);
cmdt.CommandType = CommandType.Text;
DataSet dst = new DataSet();
OracleDataAdapter dtt = new OracleDataAdapter(cmdt);
dtt.Fill(dst);
clientName.DataSource = dst.Tables[0];
clientName.DataTextField = "SMS_CLNT_NAME";
clientName.DataValueField = "SMS_CLNT_ID";
clientName.DataBind();
clientName.Items.Insert(0, " --Select--");
clientName.Items[0].Selected = true;
clientName.Items[0].Attributes["disabled"] = "Disabled";
conn.Close();
conn.Dispose();
}
the error is :
An unhandled exception occurred during the execution of the current web request