Wrox Programmer Forums
|
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books 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
  #1 (permalink)  
Old December 18th, 2003, 06:08 PM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with connecting to database

I did create register page like an example in chapter 15, Begining Active Page Server Page 3.0 but I got this message when I submit information:

Error Type:
Microsoft JET Database Engine (0x80040E09)
Cannot update. Database or object is read-only.
/AddUser.asp, line 13


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Page:
POST 167 bytes to /AddUser.asp

Anyone know how to fix it please help me.

Thanks in advance!
  #2 (permalink)  
Old December 18th, 2003, 06:19 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You have to make sure that your database (the .mdb file) is not read-only. To change that, right-click the database, choose Properties and clear the read-only checkbox.

Another, more likely, cause is that your IUSR_MachineName does not have enough permissions to access the database. To fix that, locate the folder your database resides in (for example c:\Databases), right-click the folder and chose Properties. Switch to the Security tab and click the Add button. Then add the IUSR_MachineName account (where MachineName is the name of your computer) and give this account at least modify rights.

Now IIS / the web server is allowed to access and change the database.

HtH,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to Database bryantms ASP.NET 3.5 Basics 3 July 9th, 2008 12:34 AM
Connecting to a database mfos Classic ASP Basics 0 December 20th, 2006 07:59 AM
Problem Connecting to Microsoft Access Database eric_lim_1 Classic ASP Databases 1 September 17th, 2005 03:12 AM
problem connecting to my online database umair_rathore Classic ASP Databases 1 February 9th, 2005 01:04 PM
connecting to a database nehalw VB.NET 0 January 5th, 2005 05:59 AM





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