我收到以下错误:它在我的某个开发服务器上工作正常,但在远程prod服务器上失败
string msAccessConnectionString = @"Driver={Microsoft Access Driver (*.mdb)};DBQ=" + fileName;
try
{
using (OdbcConnection sourceConnection = new OdbcConnection(msAccessConnectionString))
using (sqlConnection)
{
sourceConnection.Open();
// code to update the table or retrieve the table
}
}catch (Exception ex)
{
sb.AppendLine("ERROR --- ERROR --- ERROR --- ERROR --- ERROR ---");
sb.AppendLine(ex.Message.ToString());
}