无法打开数据库“文件名”。它可能不是数据库......Access 2007
我们的程序可以让用户选择将数据导出到访问数据库中。然后,用户下载数据库并将其用于报告等。
最近,我们升级到Office 2007,在测试中,下载该数据库时,出现错误消息:
“无法打开数据库“文件名”它可能不是您的应用程序识别的数据库,或者文件可能已损坏。”
仅当直接从网站打开并因此从临时文件文件夹打开数据库时才会出现此错误。单击错误消息上的“确定”按钮只需加载数据库即可,一切正常。
通过将数据库保存到本地驱动器,用户可以在没有消息框的情况下打开数据库。
尝试从用户临时文件目录打开 Access 数据库是否存在已知问题?
Our program has an option for users to export data into an access database. The user then downloads the database and uses this for reporting, so on and so forth.
Recently, we upgraded to Office 2007, and in testing, when downloading this database, we get the error message:
"Cannot open database "filename" It may not be a database that your application recognizes, or the file may be corrupt."
This error only occurs when opening directly from the website, and therefore opening the database from the Temporary Files folder. Clicking the OK button on the error message simply loads the database and everything is fine.
By saving the database to the local drive, users are able to open the database with no message boxes.
Is there a known problem with attempting to open an access database from the users Temporary Files Directory?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
第一个猜测是您没有在 Http 响应上指定内容长度标头。我遇到过这样的问题:之前从下载对话框中弹出“打开”选项的消息。我会开一张支票
The first guess is that you aren't specifying a content-length header on your Http Response. I've run into problems where this messages up the "Open" option from download dialogs before. I'd give that a check