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

那年仲夏 提交于 2019-12-22 10:44:39

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/24798509/system-data-oledb-oledbexception-operation-must-use-an-updateable-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!