0

我部署了我的 Vb.net 桌面应用程序。但我在访问 datbase(.mdb 文件) 上遇到错误

操作必须使用可更新查询

我正在使用 Access .mdb 文件来存储数据。我得到了这个链接来解决这个问题,但这是手动的方法。因此,当我的应用程序安装在客户端计算机上时,他们必须手动完成。

还有什么避免手动方式的解决方案?

请帮助我被困在这里。

4

2 回答 2

1

If your application is installing a copy of the database on each computer as is implied by the link, are you sure that's what you want? No data will be shared between each computer. Otherwise, what the link is saying to do, is rethink the location of the database, and get the installer to put it somewhere with read and write permission, not the application directory.

于 2013-10-16T08:59:08.053 回答
0

我假设您通过 Visual Studio 安装程序创建了 .MSI 文件。我也遇到了您的问题,我使用的解决方案是将其默认目录从更改[Program Files][WindowsVolume][ProductName]- 它将通过C:\YourApp\. 由于错误是由于用户无法在数据库上写入,我尝试从程序文件更改其目录并重新安装。这个对我有用。

于 2014-02-06T03:26:54.780 回答