System.Data.OleDb.OleDbException: Operation must use an updateable query [closed]
Asked Answered
B

1

6

I'm confused. I'm trying to add a single record into an Access 2000 database using ASP.Net. However, when I try to add new record, I get the following error:

Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.

Bunting answered 17/7, 2014 at 8:30 Comment(0)
B
14

Admittedly, the error message is misleading.

The reason for this error message is that the process runs under an identity (usually ASP.NET) that only has read access to the database and hasn't access to modify that.

So, to solve this problem you must set full access of ASP.Net user to Database file. If run it on local machine you can right click on the database file in Windows Explorer, go to the Security tab, and give the ASP.NET user modify rights to the file, but if your web site on the internet you must using your Control panel setting (such as C-Panel or Plesk) to set permission.

Bunting answered 17/7, 2014 at 8:30 Comment(1)
Setting permissions using FileZilla or other FTP programs does not work. You need to use CPanel or Plesk or other file management interface provided by the hosting company.Buonomo

© 2022 - 2024 — McMap. All rights reserved.