使用 Access 数据库和 Crystal 报告发布 C# 应用程序

Publish C# application with Access database and Crystal Reports

我开发了一个带有 Access 数据库和 Crystal 报告的 C# Windows 表单应用程序。发布后,当我尝试安装它时收到此错误消息。

错误信息的翻译:

An unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will be shut down immediately.

我用谷歌搜索了这条错误消息,但没有找到解决方案。 Ps: 我试图将它安装在我自己的计算机上,而不是在客户端计算机上,但我得到了相同的消息。

我通过在发布 settings/Application 文件

中将数据库文件状态更改为数据文件解决了这个问题