ASP 奇怪的未指定错误 - 80004005 [英] ASP Weird Unspecified Error - 80004005

查看:17
本文介绍了ASP 奇怪的未指定错误 - 80004005的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在一个已经制作好的网站上工作,只是添加一些小模块

I had to work on an already made website, just adding some small module

当我更新时,不同的子文件夹中有许多名为 myDB.mdb 的文件我想确保我的应用程序正在连接正确的数据库所以我开始重命名子文件夹...在其中一个子文件夹中,我刷新了,主站点和我的站点停止工作

While i was updating, there was many files called myDB.mdb in the different subfolders i wanted to make sure that my app is connecting the right database so i started renaming subfolder...at one of those subfolders, i refreshed,the main site and mine stopped working

我重命名为正确的名称..刷新...刷新...刷新..我仍在刷新,我启动了另一个浏览器..它给出了连接问题:S

i renamed back to the correct name.. refresh... refresh... refresh.. i am still refreshing and i started another browser.. it is giving a connection problem :S

提供程序错误80004005"

Provider error '80004005'

未指定的错误

/new/conn.asp,第 13 行

/new/conn.asp, line 13

关于他的任何想法:S将不胜感激任何帮助!

any idea about his :S would appreciate any help !

推荐答案

我也遇到了同样的问题.我第一次加载页面时效果很好,但是如果我再次快速加载页面,则会出现此错误.如果我等了一段时间,那么我没有收到错误.这一定是因为当您调用 objConnection.Close 时,实际关闭 mdb 文件需要一些时间,所以如果您再次尝试打开它,您会得到文件已在使用类型错误".奇怪地向连接添加模式为我解决了这个问题.它不必是只读的,读/写也可以.

I have had the same problem. The first time I loaded a page it worked well, but if I loaded the page again quickly, then I got this error. If I waited for a while then I didn't get the error. It must be because when you call objConnection.Close it takes some time to actually close the mdb file, so if you try and open it again you get the "File already in use type error". Strangely adding a mode to the connection sorted this problem out for me. It doesn't have to be read only, read / write works as well.

objConnection.Mode = 1 ' read only

这篇关于ASP 奇怪的未指定错误 - 80004005的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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