水晶报表 13 和 Asp.Net 3.5

Crystal Reports 13 And Asp.Net 3.5(水晶报表 13 和 Asp.Net 3.5)

本文介绍了水晶报表 13 和 Asp.Net 3.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio 2008 中的 Asp.Net 3.5 开发一个网站,我们使用 Crystal Reports 10(与 vs2008 一起使用).

I'm developing a website using Asp.Net 3.5 in Visual Studio 2008 and we use Crystal Reports 10 (that's come together vs2008).

去年,我们将其迁移到 Visual Studio 2010,但我们仍然在我们的网站中使用 .Net 3.5.Vs2010 不附带 Crystal Reports,所以我们从 SAP 业务对象下载 Crystal 13(适用于 vs2010)并安装在我的开发机器(Sdk 套件和运行时)中.

Last Year, We migrate it to Visual Studio 2010 but we still use .Net 3.5 in our website. Vs2010 does not come with Crystal Reports, so we download Crystal 13 (for vs2010) from SAP business object and install in my develop machine (Sdk kit and runtime).

它工作正常,我们将 web.config 中的引用从 Crystal 10 更改为 Crystal 13,它在我们的开发机器中工作.

It works fine, we changed the references in web.config from Crystal 10 to Crystal 13 and it's working in our develop machine.

我们仍在使用 Asp.Net 3.5.

We still using Asp.Net 3.5.

现在的问题...我将我的网站托管在我们的服务器中(我还安装了运行时)并且我收到了一条异常消息:

Now the problem... I host my website in our server (I also install the runtime) and I get this exception with a message:

无法加载文件或程序集 'CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' 或其依赖项之一.系统找不到指定的文件."

在 web.config 中例外:

In web.config the exception:

谁能帮帮我?可以将 .Net 3.5 与 Crystal 13 一起使用吗?或者水晶的其他解决方案(版本)?

Can anybody help me ? Is possible use .Net 3.5 with Crystal 13 ? Or other solution (version) for Crystal?

编辑

<compilation debug="false" strict="false" explicit="true">
    <assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    </assemblies>
      <buildProviders>
      <add extension=".rpt" type="CrystalDecisions.Web.Compilation.RptBuildProvider, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
  </buildProviders>
</compilation>  

推荐答案

我相信您不是唯一一个在尝试部署 Crystal Report for VS 2010 时遇到问题的人.根据您收到的错误消息,您是否检查过:

I believe you are not the only one who has problems when trying to deploy Crystal Report for VS 2010. Based on the error message you had, have you checked:

  1. 请确保您的系统上只安装了一个 CR 版本.如果您确实安装了其他 CR 版本,请考虑将其卸载,以免您的应用程序对 CR 版本感到困惑".

  1. Please make sure you just have one CR version installed on your system. If you do have other CR version installed, consider to uninstall it so that your application is not "confused" about the CR version.

您需要确保下载正确的 CR 版本.由于您使用的是VS 2010,因此您需要参考CRforVS_redist_install_64bit_13_0_1.zip(对于64 位机器)或 CRforVS_redist_install_32bit_13_0_1.zip(适用于 32 位机器).这两个是可再发行包.您也可以从以下链接下载完整包:CRforVS_13_0_1.exe 注意:有时即使在 64 位操作系统上也需要安装 32 位 CR 运行时

You need to make sure you download the correct CR version. Since you are using VS 2010, you need to refer to CRforVS_redist_install_64bit_13_0_1.zip (for 64 bit machine) or CRforVS_redist_install_32bit_13_0_1.zip (for 32 bit machine). These two are the redistributable packages. You can download full package from the below link as well: CRforVS_13_0_1.exe Note: It is sometimes necessary to install 32bit CR runtime even on 64bit OS

确保您在根文件夹上设置了 FULL TRUST 权限

Make sure you setup FULL TRUST permission on your root folder

必须在您的应用程序池上设置 LOCAL SERVICE 权限

The LOCAL SERVICE permission must be setup on your application pool

确保 aspnet_client 文件夹存在于您的根文件夹中.

Make sure the aspnet_client folder exists on your root folder.

如果你能确保以上 5 点,你的水晶报表应该可以正常工作.

If you can make sure all the 5 points above, your Crystal Report should work without any fuss.

这里要注意的另一件重要事情是,如果您使用共享主机托管 Crystal Report,您需要与他们核实他们是否真的支持 Crystal Report.如果还是有问题,可以切换到http://www.asphostcentral.com,他们提供水晶报表支持.

Another important thing to note down here is that if you host your Crystal Report with a shared host, you need to check it with them of whether they really support Crystal Report. If you still have problems, you can switch to http://www.asphostcentral.com, who provides Crystal Report support.

祝你好运!

这篇关于水晶报表 13 和 Asp.Net 3.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:水晶报表 13 和 Asp.Net 3.5

基础教程推荐