SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Sep 29, 2004, 09:42 #1
- Join Date
- Sep 2004
- Location
- Rome
- Posts
- 5
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Microsoft JET Database Engine (0x80004005)
Hi all,
I got Win2000 and I just developed an intranet solution installed on my web server (IIS). The application worked nicely and there were not any problems. Few days ago I re - installed win2000 and I installed the IIS and my intranet solution but there is an error and the application doens't operate correctly with the Access database.
When it tries to retrieve data from the database the following error appears:
Microsoft JET Database Engine (0x80004005)
Unspecified error
The line of the code which is indicated by the error is the following:
objConn.Open("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = "&loc&"; Jet OLEDBatabase Password="&passwd)
I updated Microsoft JET and MDAC. But just yesterday I went through the localhost web page and then I visited the web page of my application. In this way the error with the Microsoft Jet engine disappeared. I still don't know why but I repeated this procedure more times and everything works fine. If I try to connect directly to the url of the application (which is a virtual dir on the web server) I got the same problem.
If I go to localhost and then visit my application it works.
But it is not all. I noticed that if I stop browsing my application web site, after some minutes, I got the same error with the Microsoft JET engine.
Can someone explain me the reasons of this strange behaviour?
How can I resolve it?
Thanks,
Ddz
-
Sep 29, 2004, 10:40 #2
- Join Date
- Oct 2000
- Location
- Philadelphia, PA
- Posts
- 4,708
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
What does your variable loc contain? I'm guessing your using server.mappath right? I always seemed to get this error at random using server.mappath so now I just use physical paths to my database.
"Does this napkin smell like chloroform?"
...now with SnapFoo!
My Blog | My Twitter | My Company | SitePoint Podcast
*** Matt Mullenweg on the SitePoint Podcast ***
-
Sep 29, 2004, 11:03 #3
- Join Date
- Sep 2004
- Location
- Rome
- Posts
- 5
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Mongoloid
loc = "C:/db4.mdb" . I'm not using server.mappath. I just refer to phisical path.
I really don't know why I'm facing this strange behaviour.
ddz
Bookmarks