简体   繁体   English

Crystal Reports - 客户端的 temp_{}.rtp 文件出错

[英]Crystal Reports - Error in temp_{}.rtp file on client side

I have a C# application running on the client side, that uses the Crystal Reports for generating and printing reports and billings of sorts using a local database.我有一个在客户端运行的 C# 应用程序,它使用 Crystal Reports 使用本地数据库生成和打印报告和各种账单。

The problem is, after installing a version, the program started returning the error "error in tmp_XXX..._{XXXX...}.rtp. Failed to retrieve from Database".问题是,在安装一个版本后,程序开始返回错误“tmp_XXX..._{XXXX...}.rtp 中的错误。无法从数据库中检索”。 Thing is, an older version of the applications was working properly.事实是,旧版本的应用程序运行正常。

What I have tried:我试过的:

  • Installing the same version on my machine and another developer machine.在我的机器和另一台开发人员机器上安装相同的版本。 It worked fine on both两者都很好用
  • Tested running a Select, Insert, Alter and Update command using the application, both on client and developer machine.已测试在客户端和开发人员计算机上使用该应用程序运行 Select、插入、更改和更新命令。 It worked fine on both cases在这两种情况下都很好用
  • Tested the Oracle connection with another program, namely MySQL Workbench.测试了 Oracle 与另一个程序的连接,即 MySQL Workbench。 The connection was succesfully连接成功
  • Reinstall the CR13SP27MSI32_0-10010309 (SAP Crystal Reports runtime engine for .NET Framework x32)重新安装 CR13SP27MSI32_0-10010309(SAP Crystal Reports runtime engine for .NET Framework x32)
  • Install the CR13SP27MSI64_0-10010309 (SAP Crystal Reports runtime engine for .NET Framework x64)安装 CR13SP27MSI64_0-10010309(适用于 .NET Framework x64 的 SAP Crystal Reports 运行时引擎)
  • Reinstall the application重新安装应用程序
  • Wipe clean the temp folder(C:/users/.../temp)擦除临时文件夹(C:/users/.../temp)

Client side information:客户端信息:

  • Windows 11 Windows 11
  • No.Net Framework found on "Alter and Remove Programs". No.Net Framework 在“更改和删除程序”中找到。 (Not sure if relevant) (不确定是否相关)

I am out of ideas on what more to do.我不知道该做什么。

After hitting my head on the wall(figuratively, of course), I notice that the client did not have administrator permission to run the MSI files.在撞到墙上后(当然是比喻),我注意到客户端没有运行 MSI 文件的管理员权限。

All that I needed was to do was the following:我需要做的就是:

  1. Open the CMD as Administrator(Somehow, the client could use the CMD as Administrator, but not the MSI)以管理员身份打开CMD(不知何故,客户端可以以管理员身份使用CMD,但不能使用MSI)
  2. In the command prompt, input: msiexec /i "path\setup.msi"在命令提示符中输入:msiexec /i "path\setup.msi"
  3. Press Enter按回车
  4. Run the install as usual照常运行安装

Once done, all worked fine.完成后,一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM