• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

水晶报表 13 和 Asp.Net 3.5

用户头像
it1352
帮助4

问题说明

我正在使用 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>  

正确答案

#1

我相信您不是唯一个一个地个在尝试部署 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.

祝你好运!

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tangfkkba
系列文章
更多 icon
同类精品
更多 icon
继续加载