水晶报表13和Asp.Net 3.5 [英] Crystal Reports 13 And Asp.Net 3.5

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

问题描述

我在Visual Studio 2008中使用Asp.Net 3.5开发一个网站,我们使用水晶报表10(这是在一起vs2008)。去年,我们将其迁移到Visual Studio 2010,但我们仍然在我们的网站使用.Net 3.5。 Vs2010不附带Crystal Reports,因此我们从SAP业务对象下载Crystal 13(用于vs2010)并安装在我的开发机器(Sdk工具包和运行时)中。它工作正常,我们更改了web.config中的参考从Crystal 10到Crystal 13,它在我们的开发机器上工作。我们仍然使用Asp.Net 3.5。现在的问题...我在我们的服务器(我还安装运行时)我的网站,我得到这个异常与一个消息:



加载文件或程序集CrystalDecisions.ReportAppServer.ClientDoc,版本= 13.0.2000.0,文化=中立,PublicKeyToken = 692fbea5521e1304'或其中一个依赖关系。系统找不到指定的文件。


$ b

在web.config中例外:






可能使用.Net 3.5与Crystal 13?还是Crystal的其他解决方案(版本)?



谢谢!



编辑

 < compilation debug =falsestrict =falseexplicit =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 =。rpttype =CrystalDecisions.Web.Compilation.RptBuildProvider,CrystalDecisions.Web,Version = 13.0.2000.0,Culture = neutral,PublicKeyToken = 692fbea5521e1304/>
< / buildProviders>
< / compilation>


解决方案

我相信你不是唯一有问题的人当您尝试部署Crystal Report for VS 2010.根据您的错误消息,您已检查:


  1. 请确保您的系统上只安装了一个CR版本。如果您已安装其他CR版本,请考虑卸载它,以便您的应用程序不会对CR版本混淆。


  2. 您下载正确的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运行时



  3. 必须在您的应用程式集中设定LOCAL SERVICE权限



$ b如果您可以确保上述所有5点,您的水晶报表应该工作没有任何大惊小怪。



另一个需要注意的重要事情是,如果您使用共享主机托管Crystal Report,您需要检查它们是否真的支持Crystal Report。如果您仍遇到问题,可以切换到提供Crystal报表支持的 http://www.asphostcentral.com



祝你好运!


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). 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). It works fine, we changed the references in web.config from Crystal 10 to Crystal 13 and it's working in our develop machine. 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:

"Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified."

In web.config the exception:

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

Thank you!

Edits

<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>  

解决方案

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. 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.

  2. 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

  3. Make sure you setup FULL TRUST permission on your root folder

  4. The LOCAL SERVICE permission must be setup on your application pool

  5. Make sure the aspnet_client folder exists on your root folder.

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

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.

Good luck!

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆