Crystal Report无法在客户端计算机上运行。我应该安装哪个运行时版本

时间:2017-06-08 11:37:45

标签: vb.net crystal-reports

我使用Visual Studio 2010和DOT NET 4.0版。 我的数据库是MySQL

我系统中安装的Crystal Report ...

CRV

我的操作系统是Windows 7 64位。

在Visual Studio中看到,Crystal Report的版本显示为13.0.2000.0

cr

我的申请app.config如下所示。

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
      <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
</configuration>

现在客户端系统也是Windows 7 64位。我在客户端系统中安装了DOT NET 4.0和CRRuntime_64bit_13_0

执行我的应用程序时,错误显示...

System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

应用程序停止工作。

我安装了Crystal Report v.13.0.14.1720,但失败了。

我找到了this。我安装了v.13.0.20.2399支持包20 ),但错误已恢复。

我没有从scn.sap.com下载v.13.0.2000.0

我应该在客户端系统中安装哪个版本的水晶报告?

如果此错误适用于DOT NETRef. from here),那么我该如何解决?

1 个答案:

答案 0 :(得分:0)

Problem solved.

In my development system, I am using Crystal Report v.13.0.14.1720.

My first fault:

My application build is x86. But I installed the 64bit msi of the same version in the client PC.

As per SAP, Crystal Report runtime is platform specific (i.e. x86 or x64) for application setting and not the OS specific.

So If anybody builds the application in x86 (32bit) then the 32bit msi should be installed in client pc. On the other hand, if the application build is x64 (64bit) then the 64bit msi should be installed in client pc.

My second fault:

Being failed repeatedly, I installed v.13.0.20.2399 in the client pc.

Note that, v.13.0.14.1720 is service pack 14 and v.13.0.20.2399 is service pack 20. My app is compiled using service pack 14. So I have to distribute the SP14 runtime version. This is why my application crashed.

So we have to install 32bit(for 32bit application) or 64bit(for 64bit application) msi of the same service pack that is installed in development system.