hi,
in an ASP page, I coonect to a MSACCESS database and the first load of the
page is correct but, when I immediately refresh the same page, I get an
80004005 error...
Thanks for any idea...
Here is the code :
Set Conn = Server.CreateOb ject("ADODB.Con nection")
str = "Driver={Micros oft Access Driver (*.mdb)}; DBQ=" & Server.MapPath( ".")
&"\Ficli_data.m db"
Conn.Open str
Set rs2 = Server.CreateOb ject("ADODB.Rec ordset")
SQL1 = "select * from TSites order by nom_int"
rs2.Open SQL1, Conn
continuer = 1
nb = 0
do while ((not rs2.eof) And (nb <= nbrep))
nb = nb + 1
if (nb=1) then response.write( "<b>")
response.write( "<br>" & rs2("toto"))
if (nb=1) then response.write( "</b>")
rs2.movenext
Loop
rs2.close
set rs2=nothing
Conn.close
set Conn=nothing 5 2404
As most people probably do not have the error description memorized for each
error number, it's generally best to include the actual error message when
posting. Also indicate the line on which the error occurs. But here are
the most common causes for an 80004005 error. http://www.aspfaq.com/show.asp?id=2009
Ray at home
"Christophe Cerbourg" <so*****@some.w here> wrote in message
news:c0******** **@news-reader4.wanadoo .fr... hi,
in an ASP page, I coonect to a MSACCESS database and the first load of the page is correct but, when I immediately refresh the same page, I get an 80004005 error...
Thanks for any idea...
Here is the code : Set Conn = Server.CreateOb ject("ADODB.Con nection") str = "Driver={Micros oft Access Driver (*.mdb)}; DBQ=" &
Server.MapPath( ".") &"\Ficli_data.m db" Conn.Open str
Set rs2 = Server.CreateOb ject("ADODB.Rec ordset") SQL1 = "select * from TSites order by nom_int" rs2.Open SQL1, Conn continuer = 1 nb = 0 do while ((not rs2.eof) And (nb <= nbrep)) nb = nb + 1 if (nb=1) then response.write( "<b>") response.write( "<br>" & rs2("toto")) if (nb=1) then response.write( "</b>") rs2.movenext Loop rs2.close set rs2=nothing
Conn.close set Conn=nothing
sorry for I didn't give you enough informations.
The exact message is :
Provider (0x80004005)
Erreur non spécifiée (which means "not specified error"
/test/fdcli.asp, line 24 (the line of the CONNECT statement)
also thanks for the FAQ but I've already check the permissions of IUSR... on
the folder, the database is on my computer for test and I'm the only user.
What I wonder is why it works the first time, then not work again if I
refresh the page, then works again after about one minute ???
Thanks for any help
Christophe Cerbourg wrote: hi,
in an ASP page, I coonect to a MSACCESS database and the first load of the page is correct but, when I immediately refresh the same page, I get an 80004005 error...
Thanks for any idea...
Here is the code : Set Conn = Server.CreateOb ject("ADODB.Con nection") str = "Driver={Micros oft Access Driver (*.mdb)}; DBQ=" & Server.MapPath( ".") &"\Ficli_data.m db" Conn.Open str
Set rs2 = Server.CreateOb ject("ADODB.Rec ordset") SQL1 = "select * from TSites order by nom_int" rs2.Open SQL1, Conn continuer = 1 nb = 0 do while ((not rs2.eof) And (nb <= nbrep)) nb = nb + 1 if (nb=1) then response.write( "<b>") response.write( "<br>" & rs2("toto")) if (nb=1) then response.write( "</b>") rs2.movenext Loop rs2.close set rs2=nothing
Conn.close set Conn=nothing
Since you say you have already verified IUSR permissions to the folder
containing the database, I suggest you switch to the native Jet OLEDB
Provider instead of using the obsolete ODBC driver:
str = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
Data Source=" & Server.MapPath( ".\Ficli_data.m db")
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
thanks Bob for answering.
Is this driver already installed or should I look for it somewhere ?
If so, thanks for any link.
"Bob Barrows" <re******@NOyah oo.SPAMcom> a écrit dans le message de
news:O8******** *****@tk2msftng p13.phx.gbl... Christophe Cerbourg wrote: hi,
in an ASP page, I coonect to a MSACCESS database and the first load of the page is correct but, when I immediately refresh the same page, I get an 80004005 error...
Thanks for any idea...
Here is the code : Set Conn = Server.CreateOb ject("ADODB.Con nection") str = "Driver={Micros oft Access Driver (*.mdb)}; DBQ=" & Server.MapPath( ".") &"\Ficli_data.m db" Conn.Open str
Set rs2 = Server.CreateOb ject("ADODB.Rec ordset") SQL1 = "select * from TSites order by nom_int" rs2.Open SQL1, Conn continuer = 1 nb = 0 do while ((not rs2.eof) And (nb <= nbrep)) nb = nb + 1 if (nb=1) then response.write( "<b>") response.write( "<br>" & rs2("toto")) if (nb=1) then response.write( "</b>") rs2.movenext Loop rs2.close set rs2=nothing
Conn.close set Conn=nothing Since you say you have already verified IUSR permissions to the folder containing the database, I suggest you switch to the native Jet OLEDB Provider instead of using the obsolete ODBC driver:
str = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _ Data Source=" & Server.MapPath( ".\Ficli_data.m db")
HTH, Bob Barrows -- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM"
Christophe Cerbourg wrote: thanks Bob for answering. Is this driver already installed or should I look for it somewhere ? If so, thanks for any link.
Yes, it is installed as part of the MDAC installation. If it fails on you,
go to www.microsoft.com/data and get the separate Jet engine download.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Richard |
last post by:
I have been programming in Access and HTML for several years and have
decided to put these together by adding ecommerce to my site in ASP. I
bought a template from ecommercetemplates and just need to load it. I think
I have everything done correctly, but get this message:
Microsoft JET Database Engine error '80004005'>
Could not find file 'C:\InetPub\wwwroot\_private\vsproducts.mdb> '.
|
by: M P |
last post by:
What does this mean? I am accessing an ASP page that queries Access Database
thru fileDSN. I'm using IIS 5.0 Win2K SP4
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
General error Unable to open
registry key 'Temporary (volatile) Jet DSN for process 0x444 Thread 0xfe4
DBC 0x5200024 Jet'.
|
by: A P |
last post by:
I receive an error like this:
Server.MapPath() error 'ASP 0172 : 80004005'
Invalid Path
/conn.asp, line 2
The Path parameter for the MapPath method must be a virtual path. A physical
path was used.
|
by: Maurizio Amoroso |
last post by:
.... DTSRun: Executing... DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_1 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_2 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_4 DTSRun OnStart:
DTSStep_DTSDataPumpTask_2 DTSRun OnError:
DTSStep_DTSDataPumpTask_2, Error = -2147467259 (80004005) Error
string: Cannot open file
e:\private.dbc. Error source: Microsoft OLE DB Provider for ODBC
Drivers Help file: Help context: ...
|
by: Rowan |
last post by:
Hello, I have been trying to solve this problem for a couple of weeks
now with no progress. I created a package that works when it runs
from my computer but when it runs as a scheduled job, it fails. I
found references to this quite a few times and the responses have
always pointed to permissions, but I am a System Administrator. My
role is Sysadmin. I changed the Windows/NT owner of the job to sa and
that didn't work either. I made...
| |
by: Luc Dal |
last post by:
Hello,
I've serious problem using ASP under WindowsXP sp2.
I get the following reply (sorry it's in french)
Erreur de compilation Microsoft VBScript error '800a0401'
Fin d'instruction attendue
/iisHelp/common/500-100.asp, line 11
|
by: ago |
last post by:
I am trying to make the win32com HelloWorld server work with a VBA
client but I get:
Run-time error '-2147467259(80004005)':
Automation error
Unspecified error
I googled for the error but the suggested solutions (commenting out
_reg_class_spec_ and putting the server on the python path) do not seem
to make any difference (to be precise, unless I comment out
|
by: samah |
last post by:
I have a package i used it for 3 days ago and then i got these 2 error
Run Time Error unspecified error ( 80004005)
and Run Time Error Could not lock file ( 80004005)
and these are my codes with ADODB connection
Dim db As AdODB.Connection
Dim rs As Recordset
Set db = New AdODB.Connection
|
by: andy3381 |
last post by:
Hi,
I am having a scheduled job running DTS packages on my production environment.
My production server server is having Window 2003 Sp2 installed on it.
Before rebuilding the server I was getting more details error messages in case job failed
the error description is having more detailed error message.
for example:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |