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 August 25th, 2003, 11:45 AM
Authorized User
 
Join Date: Aug 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kaustav Send a message via Yahoo to Kaustav
Default NTFS Partition prevents mdb file from addnew

Sir i have winXP installed in my server with all NTFS Partition. And now while i am working on ASP pages i am in deep trouble. when i wan to vies the records of a database i can view them in the browser but as soon as i want to update a recod to the same database with rs.addnew i get the following error

Error Type:
Microsoft JET Database Engine (0x80040E09)
Cannot update. Database or object is read-only.
/web/index.asp, line 28
Here line 28 is rs.addnew

------------------
Kaustav
__________________
------------------
Kaustav
 
Old August 25th, 2003, 02:57 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 Kaustav,

You're right that NTFS security is blocking write access to your .MDB. However, the fix is easy.

1. Navigate to the folder where your database resides in using the Windows Explorer (for example: c:\Inetpub\wwwroot\Database).
2. Right-click the folder (and not the .mdb file) and choose Properties.
3. Swith to the Security tab.
4. Click Add and select the user IUSR_MachineName where MachineName is the name of your server.
5. Make sure this account has sufficient rights; Full Control would work, but Modify rights is preferred, as it gives just the necessary permissions.
6. If your site is running in its own process space (configurable through the IIS MMC), you may need to add the IWAM_MachineName account as well.

From now on, IIS should be able to access the database and modify it.

Note: If you don't have a Security tab on the Properties dialog, do this:

1. Open Windows Explorer
2. Choose Tools | Folder Options...
3. Open the View tab.
4. Scroll down and deselect Use simple file sharing (recommended).

Although it's recommended by Microsoft for "normal use", this feature blocks your ability to set permissions yourself, so you need to disable it.

HtH,

Imar



---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 20th, 2007, 03:50 PM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This describes my problem exactly. Everything has correct permissions and I can read the database, but not update.

 
Old January 20th, 2007, 09:03 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 may want to take a look here: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=263 and here: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=287

You probably need to configure the permissions for a different account than you think....

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Corrupted mdb file edcaru Access 4 April 19th, 2012 10:38 AM
Renaming remote mdb file elansolutionsltd Access VBA 7 November 11th, 2005 07:00 AM
Missing partition nosbm Linux 0 August 27th, 2004 10:34 AM
icecream07.mdb file bjackman BOOK: Beginning Access VBA 3 December 8th, 2003 08:07 PM
MDB file un-openable james_sellwood Access 4 June 16th, 2003 03:29 AM





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