************** 异常文本 **************System.Data.OleDb.OleDbException: 不能打开数据库 ''。应用程序可能无法识别该数据库,或文件可能损坏。 在 System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) 在 System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) 在 System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) 在 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) 在 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) 在 System.Data.OleDb.OleDbConnection.Open() 在 APQSDS.modInitialize.TestDic() 在 APQSDS.frmLogin.OK_Click(Object sender, EventArgs e) 在 System.Windows.Forms.Control.OnClick(EventArgs e) 在 System.Windows.Forms.Button.OnClick(EventArgs e) 在 System.Windows.Forms.Button.PerformClick() 在 System.Windows.Forms.Form.ProcessDialogKey(Keys keyData) 在 System.Windows.Forms.Control.ProcessDialogKey(Keys keyData) 在 System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData) 在 System.Windows.Forms.Control.PreProcessMessage(Message& msg) 在 System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg) 在 System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
不能打开数据库 ''。应用程序可能无法识别该数据库,或文件可能损坏。
答案:2 悬赏:80
解决时间 2021-02-23 13:22
- 提问者网友:话酸浅沫
- 2021-02-23 00:56
最佳答案
- 二级知识专家网友:茫然不知崩溃
- 2021-02-23 01:35
你的数据库连接字符串,有没有指定目录名?即具体的数据库实例
全部回答
- 1楼网友:木子香沫兮
- 2021-02-23 02:15
access数据库很容易损坏,你打开数据库,工具-压缩和修复数据库试试
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯