system.data.oledb.oledbexception(0X80004005):找不到文件 [英] system.data.oledb.oledbexception (0x80004005): could not find file

查看:2945
本文介绍了system.data.oledb.oledbexception(0X80004005):找不到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮我这个错误吗?我不明白。我有这样的错误在Windows XP,但无法在Windows 7我做什么是我附上一张照片,然后将其保存到数据库中(MS Access作为我的数据库)。照片出现在图片框,但在那之后所有的是一个烂摊子。即时通讯使用C#。

Can someone help me with this error please? I can't figure it out. I have this error on Windows XP but not on Windows 7. What I did is i attached a photo and save it to the database (MS Access as my database). The photo appears on the picture box but then after that all is a mess. Im using C#.

推荐答案

请检查路径指向一个 MDB 的App_Data 文件夹

Do check that the path point to a mdb in the App_Data folder

不是很确定,但如果数据库是在的App_Data 文件夹,只需使用:

Not very sure but if the database is inside the App_Data folder, simply use:

"PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|StaffingSystem_DB.mdb"

这篇关于system.data.oledb.oledbexception(0X80004005):找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆