c#链接access时出现的错误
public static string dsPath = @"C:\sonyScreen.mdb";private string connString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + dsPath;
private OleDbConnection conn;
conn = new OleDbConnection(connString);
if (conn.State == ConnectionState.Closed)
conn.Open();
运行到conn.Open()时,出现"找不到C:\sonyScreen.mdb文件"的错误,其中sonyScreen.mdb是自己刚刚新建的数据库
而且确定存在,这是为什么呢?