本机try catch可以抓到异常,但release后trycatch不起作用了
ma 2007-05-23 11:57:19 string mystring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\test.xls;Extended Properties=\"Excel 8.0\"";
OleDbConnection cnnxls = new OleDbConnection(my_xlsstring);
try
{
cnnxls.Open();
}
catch (System.Data.OleDb.OleDbException eole)
{
Response.Write("alert");
}