这是错误,
这是代码,
protected void Button1_Click(object sender, EventArgs e)
{
OracleConnection con;
try
{
con = new OracleConnection();
con.ConnectionString = "data source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxx)(PORT=1551)) (CONNECT_DATA=(SERVICE_NAME=xxx)));user id=xxx;password=xxx;";
con.Open();
message.Text = con.ServerVersion;
con.Dispose();
}
catch (Exception ex)
{
message.Text = ex.Message.ToString();
}
finally
{
// con.Dispose();
}
}