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 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 19th, 2007, 04:15 PM
Registered User
 
Join Date: Nov 2007
Location: Salford, , United Kingdom.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Update Fails - Database is Read-Only

Whilst working my way merrily through ‘Beginning Active Server Pages 3.0” I have hit a problem at Chapter 14. Instead of adding a new record to my movies database, my AddNew.asp code keeps coming up with the same error message –

"HTTP 500.100 Internal Server Error ASP Error IIS
Microsoft Jet Database Engine cannot update. Database or object is Read-Only"

IIS seems to think that my movies database is ‘read-only’ - but it isn't!

I have checked movie2000.mdb – it is not set as a read-only file.
It is located in the root of my c: drive
The ADO connection properties reports that Movie2000.mdb is not read-only.
I deleted and reloaded the database in case of gremlins!! – still no luck.

Finally I have downloaded the code for AddNew.asp from the wrox website in case I have made a typing error which I can’t readily spot. Still the same error message keeps coming back!

Any help and advice gratefully received!!
Reply With Quote
  #2 (permalink)  
Old November 20th, 2007, 12:18 PM
Registered User
 
Join Date: Nov 2007
Location: Salford, , United Kingdom.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Grateful thanks to PGTIPS & John Reeve41 - with your help the problem is solved!

Cheers

Pete
Reply With Quote
  #3 (permalink)  
Old December 18th, 2007, 12:48 AM
Authorized User
 
Join Date: Dec 2005
Location: Lucknow, UP, India.
Posts: 28
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Yahoo to surendraparashar
Default

Hi,

Pete

 Since you are using MS Access database that's why this type problem arises. Because in ms-access, database architecture used is file system. In this architecture while opening the database a log file is created and on closing the database that log file deleted.

Therefore in this case make the folder which contains the .mdb file must have the read write and delete permission. Try this; I hope this will definitely resolve your problem.

  :)
Best of luck

Surendra Parashar
Gurgaon,
http://www.geocities.com/surendraparashar
Reply With Quote
  #4 (permalink)  
Old December 19th, 2007, 02:40 PM
Authorized User
 
Join Date: Oct 2003
Location: Denver, CO, USA.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by pete robinson
 Grateful thanks to PGTIPS & John Reeve41 - with your help the problem is solved!

Cheers

Pete
Yeah, for anyone else having this issue and reading this thread for the solution, the poster above me is likely correct. This was probably a permissions issue with the folder in which the Access DB resides.
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
Database connnection fails often happygv SQL Server 2000 0 October 24th, 2008 01:13 PM
Fails To Update sirmilt BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 12 May 8th, 2008 11:16 AM
Cannot update. Database or object is read-only. zedekiah Classic ASP Databases 1 May 2nd, 2008 09:30 AM
update/delete fails when row contains null values davej ASP.NET 2.0 Basics 2 December 6th, 2006 03:47 PM
odbc update fails iecanfly MySQL 0 February 22nd, 2005 08:23 PM



All times are GMT -4. The time now is 12:32 PM.


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