Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with “Cannot update. Database or object is read-only.”

Status
Not open for further replies.

AnilNe

IS-IT--Management
Dec 31, 2003
31
US
Dear Friends,
I got a online application where through ASP pages, data entered by web site visitor is to be inserted into the database.

Whenever data is inserted it gives error message “Cannot update. Database or object is read-only.” I have given write permission to MDB file through IIS. Also I have checked the mdb file from explorer if it is read only file. But still I have same problem. I am confused if I have missed any step.

Any help will be highly appreciated.

Thanks in advance.

With Regards,
Anil
 
The IUSR_MachineName account needs the permissions. If you need help with that just ask.
 
Ya please give me some help regarding this.
I have checked "Anonymous Access" and checked "Allow IIS to control password".

Do i need to do something specific in this case?

Your kind help will be appreciated.

With regards,
Anil
 
Right-click on the folder that the database is in.
Select Properties from the context menu.
Select the Security tab.
Click Add.
Find the user entry that starts with IUSR_
It will be IUSR_ + Whatever the machine name is.
Add that user and give him write permissions.
That should solve the problem.
 
PS ... you did the permissions _IN_ IIS, you need to do them on the system side, OUTSIDE IIS, as in use windows explorer to get to the folder, right click, then security / permissions iusr needs to have change permissions (including delete ) for MS db's

IIS's permissions/security settings can be a little misleading sometimes.

[thumbsup2]DreX
aKa - Robert
 
Ya please give me some help regarding this.
I have checked "Anonymous Access" and checked "Allow IIS to control password".

Do i need to do something specific in this case?

Your kind help will be appreciated.

With regards,
Anil
 
Dear Friends,
Thank you for your help.
I did everything as you have suggested.
However, I am still having problem with “Permission Denied”.
I am really so much frustrated with this.
Kindly please help me.

Thanks in advance.

With Regards,
Anil
 
also, just in case, perhaps try a refresh ... you might have the error cached.

[thumbsup2]DreX
aKa - Robert
 
Like DreXor said, get out of IIS and set the permission using Windows Explorer. If after setting the permissions correctly it still doesn't work, check the properties of the database (.mdb) file. It may just be Read-Only. :)
 
also, you cant access the db if you or someone else has it open in access, you cannot view data in access and asp at the same time, unless you're using some indepth group settings.

if per chance the machine has suddenly shutdown or rebooted or locked while using the DB in access, the .ldb file wont get cleared and leave the db locked in a read only state as well. make sure this file isn't present in the same folder your db resides. if it is, you might have a hard time deleting it, if you can delete it, you should be ok to get things running again.

and lastly, only other that comes to mind about being read only, is settings inside of access to lock the deb, or make the data read only, including password settings etc. on the actual database from inside.

[thumbsup2]DreX
aKa - Robert
 
System Security Policies can over ride the manual change on both the folder and Db [both need to be set to allow Iusr_xxx] to read/write access.

If you arent logged in as the admin on the server or a security policy set through the server disallows it then you need to speak to them to grant that privelige.

hope this helps....



Glen
Conception | Execution
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top