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

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

问题描述

我正在开发在Visual Studio 2008中使用Asp.Net 3.5网站,我们用水晶报表10(即走到一起VS2008)。去年,我们就迁移到Visual Studio 2010中,但我们仍然在我们的网站上使用的.Net 3.5。 VS2010没有附带水晶报表,所以我们从SAP业务对象下载13水晶(用于VS2010)和我的开发计算机上安装(SDK工具包和运行时)。它工作正常,我们在web.config中改变了引用从10水晶水晶13,它的工作在我们的开发机。我们仍然使用Asp.Net 3.5。现在的问题......我主持我的网站在我们的服务器(我也安装运行时),我得到这个异​​常,提示信息:

无法加载文件或程序集CrystalDecisions.ReportAppServer.ClientDoc,版本= 13.0.2000.0,文化=中性公钥= 692fbea5521e1304'或其依赖项之一。该系统找不到指定的文件。

在web.config中的异常:

有人能帮助我吗?
可以使用的.Net 3.5,水晶13?或其它溶液(版本)水晶?

感谢您!

编辑

 <编译调试=假严=false的明确=真>
    <&集会GT;
        <添加组件=System.Core程序,版本= 3.5.0.0,文化=中性公钥= B77A5C561934E089/>
        <添加组件=System.Web.Extensions程序,版本= 3.5.0.0,文化=中性公钥= 31BF3856AD364E35/>
        <添加组件=System.Data.DataSetExtensions,版本= 3.5.0.0,文化=中性公钥= B77A5C561934E089/>
        <添加组件=System.Xml.Linq的,版本= 3.5.0.0,文化=中性公钥= B77A5C561934E089/>
        <添加组件=System.Windows.Forms的,版本= 2.0.0.0,文化=中性公钥= B77A5C561934E089/>
        <添加组件=System.Design,版本= 2.0.0.0,文化=中性公钥= B03F5F7F11D50A3A/>
        <添加组件=System.Web.Extensions.Design,版本= 3.5.0.0,文化=中性公钥= 31BF3856AD364E35/>
        <添加组件=CrystalDecisions.CrystalReports.Engine,版本= 13.0.2000.0,文化=中性公钥= 692fbea5521e1304/>
        <添加组件=CrystalDecisions.ReportSource,版本= 13.0.2000.0,文化=中性公钥= 692fbea5521e1304/>
        <添加组件=CrystalDecisions.Shared,版本= 13.0.2000.0,文化=中性公钥= 692fbea5521e1304/>
        <添加组件=CrystalDecisions.Web,版本= 13.0.2000.0,文化=中性公钥= 692fbea5521e1304/>
        <添加组件=CrystalDecisions.ReportAppServer.ClientDoc,版本= 13.0.2000.0,文化=中性公钥= 692fbea5521e1304/>
    < /组件>
      < buildProviders>
      <添加扩展= TYPE =CrystalDecisions.Web.Compilation.RptBuildProvider,CrystalDecisions.Web,版本= 13.0.2000.0,文化=中性公钥= 692fbea5521e1304/&GTRPT。
  < / buildProviders>
< /编译>


解决方案

我相信你是不是想根据你有错误信息来部署水晶报表于2010年VS当谁拥有的问题只有一个,你检查:


  1. 请确保您只需要在系统上安装一个CR版本。如果你有安装了其他版本的CR,可以考虑将其卸载,使您的应用程序是不是糊涂有关CR版本。


  2. 您需要确保您下载正确的CR版本。由于您使用的是VS 2010,你需要参考<一个href=\"http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0_1.zip\">CRforVS_redist_install_64bit_13_0_1.zip (64位机)或<一个href=\"http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_1.zip\">CRforVS_redist_install_32bit_13_0_1.zip (32位机)。这两个都是可再发行的包。您可以从下面的链接,以及下载完整的包:<一href=\"http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_1.exe\">CRforVS_13_0_1.exe


  3. 请在你的根文件夹一定要设置完全信任权限


  4. 本地服务的权限必须设置您的应用程序池


  5. 请确保你的根文件夹中存在的aspnet_client文件夹。


如果您可以确保上面的所有5个点,你的水晶报表应该没有任何大惊小怪。

在这里记下另一个重要的事情是,如果你使用一个共享的主机托管的Crystal Report,你需要与他们的,他们是否真正支持水晶报表进行检查。如果你还有问题,可以切换到 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

  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天全站免登陆