Welcome to WebmasterWorld Guest from 54.226.242.132

Forum Moderators: open

Message Too Old, No Replies

ASP, Access & LDB Locked File

Server hangs for ever

     
8:42 pm on Aug 30, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 7, 2005
posts:94
votes: 0


I'm having problems with our new ISP, who can't seem to resolve a hanged server when my ASP page tries to connect to an Access database.

An LDB locked file is produced by Access on the server once the page connects to the database (using a Jet DSNless connection), which didn't happen with our old ISP. This locks everyone else out, and the server hangs, making our site inaccessible:

conn.Open "Data Source=" & Server.Mappath("/path-to-data.mdb") & ";Provider=Microsoft.Jet.OLEDB.4.0;"

I've pulled out clumps of hair over the last 72 hours trying to sort this out. If anyone can help me to keep the remaining strands of hair, I'd be very grateful.

Chris

9:28 pm on Aug 30, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 26, 2003
posts:371
votes: 0


Does the Internet Guest Account (IUSR_Something) have appropriate rights to the directory containing the database?
9:44 pm on Aug 30, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 7, 2005
posts:94
votes: 0


CHMOD is 777 in that directory. I assume this is the right settings?
12:29 am on Aug 31, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 1, 2001
posts:4392
votes: 0


Don't use access for web work. Access is fine for a desktop app, but not the constant open and close of the web.

use mySql or mssql instead.

1:20 pm on Aug 31, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 26, 2003
posts:371
votes: 0


Don't use access for web work

Actually, in my experience, using Access is just fine for light to medium loads... But when you start getting a heavy load, you should certainly consider something like MS SQL Server!

3:09 pm on Aug 31, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 13, 2002
posts:2162
votes: 0


Its normal for the .ldb file to be locked when the database is open.

Sounds like the conenction isnt being released properly - are you closing the recordset before releasing it? What error message do you get?

9:10 pm on Sept 11, 2005 (gmt 0)

New User

10+ Year Member

joined:May 26, 2005
posts:4
votes: 0


Access has many problems in a hosted environment and the locked file syndrome is one of the more common.

Because Microsoft MSDE is free for both hosting companies and end-users, there really is no reason to not use a real database (MSDE) instead of the file-based MS Access.

If your hosting company can't support MSDE, and you don't want to upgrade to a full SQL Server account, then go somewhere else.

All medium to large (but not small) Microsoft technology hosting companies support database hosting as it is the foundation for ASP, ASP.NET, SharePoint and most of the Microsoft Server stack.

2:28 pm on Sept 16, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 18, 2002
posts:145
votes: 0


Access, in my ISP environment, perfectly support concurrent connections...