Microsoft Jet数据库引擎无法打开文件c#

您好,我有一些问题阅读与Jet数据库引擎的CSV文件。 我得到这个消息:

The Microsoft Jet database engine cannot open the file 'C:\Users\mikec\Desktop\'. It is already opened exclusively by another user, or you need permission to view its data. 

我有权限访问此文件夹和文件。 我也尝试把我的Visual Studio项目,仍然得到相同的错误。 这是我的代码

 string path = @"C:\Users\mikec\Desktop\Book1.csv"; string full = Path.GetFullPath(path); string file = Path.GetFileName(full); string dir = Path.GetDirectoryName(full); //create the "database" connection string string connString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=\"" + dir + "\\\";" + "Extended Properties=\"Excel 8.0;HDR=Yes;FMT=Delimited\""; //create the database query string query = "SELECT * FROM " + file; //create a DataTable to hold the query results DataTable dTable = new DataTable(); OleDbConnection con = new OleDbConnection(connString); //create an OleDbDataAdapter to execute the query OleDbDataAdapter dAdapter = new OleDbDataAdapter(query, con); try { //fill the DataTable dAdapter.Fill(dTable); } catch (InvalidOperationException e) { } 

我很困惑,为什么发生这种情况我已经环顾了互联网,找不到解决scheme。

如果有人能指出我正确的方向,那将是非常好的。

谢谢。