If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > (0x80004005) Unspecified error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-25-11, 19:53
dtk8000 dtk8000 is offline
Registered User
 
Join Date: Feb 2011
Posts: 6
(0x80004005) Unspecified error

My problem is that I get following error :

Microsoft JET Database Engine (0x80004005)
Unspecified error
/dtk/common.asp, line 24

when running my ASP – Access Database on my localhost.

My script is following:
Dim dcnDB 'As ADODB.Connection
Set dcnDB = Server.CreateObject("ADODB.Connection")
dcnDB.ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Persist Security Info = False;Data Source=" _
& Server.MapPath("Master.mdb")
dcnDB.Open
Set OpenDatabase = dcnDB
The error occours when calling dcnDB.Open
Everything has been working. It just stopped, the next day I turned my PC on. Then I checked the security settings on the folder containing the database and ASP pages. Temp folders (%tmp%, %temp). The IUSR_PCName and IWAM_PCName has full access to these folders. When searching the internet for this error – all answers is the permission to access the temp and other folders. But the permissions is OK according to the security tap.
The script is working fine on the webhotel.
I am running Windows XP – servicepack 3 and all other updates.

Why did it stop working????

Any ideas???
Reply With Quote
  #2 (permalink)  
Old 02-27-11, 09:34
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Now hold on a minute here. You're running your entire website out of a temp folder?

What is a webhotel?
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 02-27-11, 18:01
dtk8000 dtk8000 is offline
Registered User
 
Join Date: Feb 2011
Posts: 6
(=x80004005) Unspecified error

Nope - not running the entire website from a tempfolder. But when running the website on the localhost/127.0.0.1 the database uses the temp folder for temporaly files. And that why the IIS needs access

A webhotel is a ISP.

So - running the website from my ISP - works great. But running i local - not works great.
Reply With Quote
  #4 (permalink)  
Old 02-27-11, 21:14
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
What does
Code:
<%=Server.MapPath("Master.mdb")%>
return?
__________________
George
Twitter | Blog
Reply With Quote
  #5 (permalink)  
Old 02-28-11, 14:53
dtk8000 dtk8000 is offline
Registered User
 
Join Date: Feb 2011
Posts: 6
(0x80004005) Unspecified error

The server.mapPath returns:

C:\Inetpub\wwwroot\DTK\Master.mdb.

And that is where the database and asp files are located in local folder.
Reply With Quote
  #6 (permalink)  
Old 02-28-11, 15:14
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
What does all this have to do with temp folders?
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #7 (permalink)  
Old 02-28-11, 15:38
dtk8000 dtk8000 is offline
Registered User
 
Join Date: Feb 2011
Posts: 6
(0X80004005) Unspecified error

Hi Teddy.

<-What does all this have to do with temp folders?->

Actual nothing. But all hits, when searching for this error, describes how to check and add the permission for the IIS to access temp folders. But this is not actual my problem. The IIS has fully access.

But when I run my webside local on my computer - this error occours. But if it not related to above - then - what cause the error?

So - has somebody seen this error related to something else??
Reply With Quote
  #8 (permalink)  
Old 02-28-11, 15:51
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
You need to grant file permissions on the files your website wants to use.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #9 (permalink)  
Old 02-28-11, 16:23
dtk8000 dtk8000 is offline
Registered User
 
Join Date: Feb 2011
Posts: 6
(0x80004005) Unspecified error

Hi Teddy.

I have granted access all temp and local web folders, with iusr_pcname and iwam_pcname with full control.

And I had actually everything running perfect. The data from access database where shown on the webpages. But one day it stopped working. The error code where shown when it tried to open the database. Then start check and check the permissions on the folders. These is intact. So if - permissions is intact - what is then the problem???
Reply With Quote
  #10 (permalink)  
Old 03-02-11, 14:22
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
Have you setup iis to write to folder where the mdb is.
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
Reply With Quote
  #11 (permalink)  
Old 03-02-11, 18:08
dtk8000 dtk8000 is offline
Registered User
 
Join Date: Feb 2011
Posts: 6
0x80004005) Unspecified error

Hi Myle.
Yes I have. I had worked before. After turning the PC on next day, it stopped working????
Reply With Quote
  #12 (permalink)  
Old 03-02-11, 20:12
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Then clearly something changed.

Throw all of your assumptions about how the environment is configured out the window. Re-confirm everything.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #13 (permalink)  
Old 03-09-11, 17:25
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Can you open the database interactively? Perhaps it has become corrupt or locked in some way.

If everything working one day and not the next you need to have a look at what changed...

Was there a service pack installed on your machine via SMS or something similar?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On