Current location: Hot Scripts Forums » Programming Languages » ASP » ASP using Access200 database problem


ASP using Access200 database problem

Reply
  #1 (permalink)  
Old 10-16-03, 04:55 PM
discostew99 discostew99 is offline
New Member
 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ASP using Access200 database problem

I'm using an .asp page to connect to an MS Access 2000 db using ADO. Everything works like a charm on the web until I open and close the database (to do data entry, etc.). At that point I get the following error in Internet explorer when I access the .asp page. At this point the db is closed:

Provider error '80004005'

Unspecified error

/HR/Training/Home Office/CourseDesc.asp, line 26

Line 26 is my connection string (Conn.Open strDBName).
I only get this error some of the time. It's not at all consistent. Within a 1 minute period I may be able to connect 5 times fine and 20 times getting the error above. If I stop and restart the web service on the server, everything works great again - until the next time I open and close the database. Any ideas??? Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-17-03, 11:52 AM
discostew99 discostew99 is offline
New Member
 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Figured out what the problem was. The Everyone group needs to have Write permissions on the directory where the Access database lives. This will also cause the database itself to have Write permissions for the Everyone group. Works like a charm now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-24-03, 02:52 PM
discostew99 discostew99 is offline
New Member
 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by discostew99
Figured out what the problem was. The Everyone group needs to have Write permissions on the directory where the Access database lives. This will also cause the database itself to have Write permissions for the Everyone group. Works like a charm now.
UPDATE: The .mdb does not have to have Write permissions for the Everyone group - just the directory.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-05-03, 11:39 AM
selwonk selwonk is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
If this folder is only going to be used by a web application, I'd avoid using the "Everyone" group and just allow write access to the Internet guest account (this begins IUSR_....) This way you keep everything nice and secure

Quote:
Originally Posted by discostew99
Figured out what the problem was. The Everyone group needs to have Write permissions on the directory where the Access database lives. This will also cause the database itself to have Write permissions for the Everyone group. Works like a charm now.
__________________
selwonk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Share database over the Internet nitinkedia The Lounge 2 11-20-03 03:07 PM
SQL database registration form help vinhkhuong PHP 3 10-10-03 04:49 AM
tracking down a database problem ... bjmcintosh ASP 1 08-29-03 08:52 AM
Share database over the internet nitinkedia PHP 0 07-11-03 01:22 AM
Share database over the Internet nitinkedia New Members & Introductions 1 07-10-03 03:50 PM


All times are GMT -5. The time now is 10:34 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.