ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 29th, 2012, 02:15 PM
adder1 adder1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 2 adder1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 37 sec
Reputation Power: 0
Angry Sporadic 80004005 "Unspecified Error" in ASP & Access

I am currently developing a new site for my company on the internal intranet. This is an ASP(classic, non-NET) file that connects to an Access 2003 .mdb file.

When I had several folks test it, about half got the page as intended, the other half got the following error:
Code:
Microsoft JET Database Engine error '80004005'
Unspecified error 
/path/to/file.asp, line 19

The line in question is the Conn.Open line, as listed below. I have checked throughout the net, and can't find a suitable answer as to why this is happening. Any help would be appreciated!

Code:
'declare variables
Dim Conn, sConString
dim objRS, sSQL
dim keyRS, kSQL 

'create ADO connection and recordset object
Set Conn = Server.CreateObject("ADODB.Connection")
Set objRS = Server.CreateObject("ADODB.Recordset")
Set keyRS = Server.CreateObject("ADODB.Recordset")

sConnString="PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/path/to/file.mdb") &";Jet OLEDB:Database Password=*****;"
Conn.Open(sConnString)

Reply With Quote
  #2  
Old March 29th, 2012, 10:49 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 22 m 8 sec
Reputation Power: 4445
Don't use Access .mdb as a backend database. In particular, it would be foolish to start designing a new site that uses an Access db. The Jet drivers were never designed with web use in mind and are not scalable for use in web applications. Your symptoms are typical of an Access-backed asp site that has outgrown it's usable traffic.

Use SQL Server or MySQL or some other robust dbms instead of access.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #3  
Old March 30th, 2012, 05:56 AM
adder1 adder1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 2 adder1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 37 sec
Reputation Power: 0
Unhappy

Ah, were it that simple of an answer. Alas, the suits that decide this sort of thing have said to do it on a threadbare budget. Honestly, I'm lucky to have IIS space available to me at all! If this were an external-facing site, I could have probably been able to get a proper SQL, but as it stands, .mdb is the best I can come up with (the IIS server doesn't even have the ACE OLEDB driver for Access 2007!)

That said, if there is any possible workaround for the error, or even the cause of the error (in a language that the suits may reconsider), it would be greatly appreciated.

Reply With Quote
  #4  
Old March 30th, 2012, 04:56 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 22 m 8 sec
Reputation Power: 4445
There is always http://www.microsoft.com/sqlserver/...ns/express.aspx if you can get anything installed on the IIS server. SQL Server Express won't impact your budget.

If you must continue with Access, make sure you have the most current Jet OLEDB drivers installed on the web server. Review your file permissions on the .mdb file and it's folder, make sure the IUSR_ and any authenticated user accounts have full write permissions. Likewise on the %TEMP% folder on the server.

Take a look at your web server traffic and see if the errors tend to occur during higher traffic times. If you're on a 64bit server I believe you have to set up a 32bit environment for Jet, I don't think there are any 64bit Jet drivers available, but I haven't used IIS and Jet since the IIS5 days

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Sporadic 80004005 "Unspecified Error" in ASP & Access

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap