IIS .NET 程序 操作必须使用一个可更新的查询的解决办法

操作必须使用一个可更新的查询。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: 操作必须使用一个可更新的查询。

原因:出现这个问题是因为access数据库没有写入权限导致的。

解决方法:可以单独给access所在目录增加写入权限,也可以给整个网站目录写入权限

增加 everyone用户,勾选下面的读取和写入权限(有的电脑需要勾选修改权限),本机直接勾选完全控制也可以