I did a quick search for the error message and found something that may help.
It's in VB so I'll translate it for you. I also had to change it from the original a little to work.
Here is a link to the original artical An Error Has Occurred - ASP.NET Forums
Here is the code:
public bool getTables(string tableName)
bool tableExists = false;
OleDbConnection conn = new OleDbConnection(conStr);
DataTable dt = conn.GetSchema("Tables");
foreach (DataRow row in dt.Rows)
if (row.ItemArray.ToString() == tableName)
tableExists = true;