Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 25th, 2004, 10:15 AM
Registered User
 
Join Date: Nov 2004
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old November 25th, 2004, 10:37 AM
Registered User
 
Join Date: Nov 2004
Location: , , .
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")
Reply With Quote
  #3 (permalink)  
Old November 25th, 2004, 02:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
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
Reply With Quote
  #4 (permalink)  
Old November 26th, 2004, 07:03 AM
Registered User
 
Join Date: Nov 2004
Location: , , .
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 ,
Reply With Quote
  #5 (permalink)  
Old November 26th, 2004, 07:14 AM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , United Kingdom.
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

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:08 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.