Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 25th, 2004, 10:15 AM
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default can some 1 plz help with this error

hi

  when am runing piece of code it says like this

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
---------------------------------
Error Type:
DAO.Workspace (0x800A0BEB)
The Microsoft Jet database engine cannot open the file 'c:\Inetpub\wwwroot\satyapro\db.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
/satyapro/inc/common.asp, line 12
====
this is the original code

Const AppPath = "c:\Inetpub\wwwroot\satyapro\"
Const DBName = "db.mdb"
Const AvatarPath = "./avatars/"
Const EmoticonPath = "./emoticons/"
Const MainPage = "./index.asp"

it's working in other system ,am using windows xp sp2 ,it's working perfectly on win 98 pws

can u plz check this ,thanks in advance
 
Old November 25th, 2004, 10:37 AM
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry friends

the original code is missing in the above post
Dim DB, rsUser, rsMessage, rsTopic, rsForum, rsSection, rsSettings, rspMessage, UserCount, PostCount, TopicCount

'open the database
Set DB = CreateObject("DAO.DBEngine.36").Workspaces(0).Open Database(AppPath & DBName,,True)
Set rsUser = DB.OpenRecordset("User")
Set rsMessage = DB.OpenRecordset("Message")
Set rsTopic = DB.OpenRecordset("Topic")
Set rsForum = DB.OpenRecordset("Forum")
Set rsSection = DB.OpenRecordset("Section")
Set rsSettings = DB.OpenRecordset("Settings")
Set rspMessage = DB.OpenRecordset("pMessage")
 
Old November 25th, 2004, 02:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
quote:It is already opened exclusively by another user
Is that you are trying to browse this page keeping the mdb file open with access application? If so close the MDB and then try.

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old November 26th, 2004, 07:03 AM
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi

 am not trying to login to that form when the mdb is open ,am not at all touching that mdb ,but still it says it's opened i think it the problem with Dao engine ,
 
Old November 26th, 2004, 07:14 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

Does the .mdb file have permissions set to allow the user
IUSR_[yourMachineName] to use it?

Cheers,

Chris






Similar Threads
Thread Thread Starter Forum Replies Last Post
error help plz... sweetraskels BOOK: ASP.NET Website Programming Problem-Design-Solution 0 March 12th, 2007 07:58 AM
passing value error...plz help fung Classic ASP Basics 3 August 23rd, 2004 11:25 AM
plz help me out - form submit error marsali2004 General .NET 5 July 1st, 2004 12:48 PM
plz help me solve this error moushumi Classic ASP Databases 1 March 31st, 2004 10:23 PM
Build Error - Plz Help - Thanks ank2go ASP.NET 1.0 and 1.1 Basics 1 February 23rd, 2004 10:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.