Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crystal Reports 13 And Asp.Net 3.5

Tags:

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?

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>  
like image 221
Felipe Oriani Avatar asked Mar 04 '11 12:03

Felipe Oriani


People also ask

What version of Crystal Reports uses 13.0 2000?

13.0. 2000.0 is the assembly version.

What is SAP Crystal Reports runtime engine for .NET framework?

The SAP Crystal Report is the reporting tool that used to design reports both in web and desktop environment. The Sap Crystal report has gone through changes in name quite a few times and the current version is named SAP Crystal Reports, developer version for Microsoft Visual Studio.

Is Crystal Reports 2020 32 or 64 bit?

Notes: Crystal Reports 2020 is offered as a 64-bit native binary. It requires 64-bit data source middleware connectivity on all operating systems.


2 Answers

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!

like image 115
user707217 Avatar answered Sep 30 '22 12:09

user707217


I had this same problem and resolved it by making sure all references to the previous version of crystal from the Web Config file, the server, and the publishing workstation were removed. Other than the full trust basically everything that user707217 did, I did and it worked for my upgraded Web application

like image 28
Clarence Avatar answered Sep 30 '22 12:09

Clarence