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 May 24th, 2004, 05:24 AM
Authorized User
 
Join Date: May 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default db access prob

Hello everybody,

First of all please forgive me for any kind of ignorance as i'm still in learning stage.

I copied a .mdb file from an installation (os: XP professional) to another installation where also the os is

windows xp professional using a cd. When I installed the file property shows 'read-only'. I unchecked

'read-only' mode. I can add record to any table of the database through MSAccess tool but I can not add

record to any table using ASP forms. The error I get is as follows:

Error Type:
Microsoft JET Database Engine (0x80040E09)
Cannot update. Database or object is read-only.
/asp-learning/Addrecord.asp, line 22
Now I came to know from this forum(url is: http://p2p.wrox.com/topic.asp?TOPIC_ID=9598) that following step

is the solution :

"This usually indicates a permissions problem. The account your web server is running under does not have the

proper permissions to change the database and the folder it resides in. To fix this, give the

IUSR_MachineName permissions to change the database and the folder it resides in."-Imar

Now my question is : What is the detailed steps to give the particular user that type of permissions?

Can I get any help from any body?

Thanks.
 
Old May 24th, 2004, 07:38 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Right click the folder and go to properties. You should see a 'Security' tab. If you don't try this:

Open 'My Computer'. Click 'Tools' and then 'Folder Options'. Then click on the 'View' Tab and scroll all the way to the bottom. Uncheck 'Use Simple File Sharing(Recommended)' and click 'Ok' or 'Yes' to the warning.

Once that has been done you should be able to go the the folder where your db.mdb is at and right click on the folder and give <machine name>\aspnet account write access to the folder.

You must be using NTFS and NOT FAT16 or FAT32.


 
Old May 24th, 2004, 03:13 PM
Authorized User
 
Join Date: May 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Seb_soum
Default

I had the exact same problem. No idea what was wrong as I added all the necesary rights where I could, but no luck. I just moved the file to a partition with FAT32 installed and VOILA!!!!
 
Old May 24th, 2004, 03:28 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I wouldn't consider that an improvement. Instead of "setting security" you have now completely removed security. FAT32 disks don't support the NTFS / NT security model, so right now, everyone can read, change or delete stuff in your database. Not a comforting thought.

To successfully set the required permissions, first find out what account IIS uses with this FAQ: http://Imar.Spaanjaars.Com/QuickDocID.aspx?QUICKDOC=287

Once you know the account, follow the steps from this FAQ to set the required permissions: http://Imar.Spaanjaars.Com/QuickDocID.aspx?QUICKDOC=290

HtH,

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Access db is in use mateenmohd Access 2 June 4th, 2008 02:28 AM
Access Db on Web awwhite VB Databases Basics 1 May 9th, 2005 11:06 PM
Converting Access DB to Online DB eyal8r Access 5 December 6th, 2004 05:22 AM
access db to sql server db mikersantiago Classic ASP Basics 4 November 16th, 2004 03:33 AM
prob with comparing date in access nilesh_parmar Access 1 March 29th, 2004 10:59 AM





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