cancel
Showing results for 
Search instead for 
Did you mean: 

CRYSTAL Reports 2010 for VS 2010 Installation and Deployment issues

Former Member
0 Kudos

On Installing Crystal Reports for Visual Studio 2010 the Crystal Report Viewer in the Toolbox reports itself as Version 13.0.2000.0. When dragging said viewer onto an ASPX Page it: -

1) Comes up with the wrong version: - Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304", NOT 13.0.2000.0!

2) The ADE visualisation of the ASPX Page comes up with the following error: - "Error Creating Control - ContentPlaceHolder1. SessionState can only be used when enableSessionState is set to true. ...............

In my Web.Config file enableSessionState is set to true AND System.Web,SessionStateModule is referenced in <httpModules> the message is therefore less than helpful.

3) Surprisingly when I correct the Version to 13.0.2000.0, the same error happens. Even more surprisingly the page builds and in the development environment the CrystalReportViewer works@#@!! Unfortunately when deployed to a production Web Serrver W2K8 x64 and IIS7.x the page loads but the viewer does not, no errors are caught, the event viewer log is happy. (The click-once Runtimes x32 and x64 have been installed on the server).

The same code works fine in VS2008 targetting CR 2008.

How do I:

1) Get CR2010 for VS2101 Installed Correctly?

2) Deploy The Viewer to a production server?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ludek,

Thank you for your advice. It resolved some, but not all issues.

VS 2010 and CR 2010

==================

I have: -

1) Uninstalled Visual Studio 2008 from my Dev Box

2) Uninstalled and Reinstalled CR2010 for VS 2010 on my dev box and Rebooted.

PROBLEM 1

- This resolved the issue of the wrong version of the Crystal viewer being embedded in the ASPX page

- There IS STILL AN ONGOING PROBLEM. The CrystalReportViewer (Version=13.0.2000.0) embedded in the ASPX page displays the following: -

"Error Creating Control - ContentPlaceHolder1 SessionState can only be used when enableSessionState is set to true. ...............". Can you advise me of any further work arounds for this issue?

Crystal Reports Runtime x32 and x64 on Sever 2008 R2: - Not being Visualised

===============================================================

1) I Uninstalled the x32 and x64 Runtimes from the Production Web Server

2) I then rebooted the server and installed x32 then x64 runtimes

The server is Server 2008 R2 Standard Edition running IIS7.5.76.

The ASPX Web application uses an ASP.Net v4.0 Application Pool

PROBLEM 2: - The Crystal Report viewer embedded in the web page above is not visible. No errors

are Displayed on the web page.

An event is being raised: -

The description for Event ID 4353 from source Crystal Reports cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: The keycode assembly, BusinessObjects.Licensing.KeycodeDecoder.dll, cannot be loaded. The message resource is present but the message is not found in the string/message table

What do I need to do to have BusinessObjects.Licensing.KeycodeDecoder.dll load correctly at runtime

Many thanks in advance

saurabh_pathak
Active Contributor
0 Kudos

Hi Nigel,

Please see following

Thanks,

Saurabh

Answers (1)

Answers (1)

former_member183750
Active Contributor
0 Kudos

This is a known issue (unfortunately, no KB created yet as I just duplicated and reported the issue to QA (tracking number; ADAPT01506220) two days ago).

The issue appears only on computers with side by side install of .NET 2008 and .NET 2010.

Follow these steps to resolve the issue:

1) Remove the following from the web.config:

<add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

2) Open the form that has the viewer on it, go to code behind and replace this:

<%@ Register assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web"; tagprefix="CR" %>

with:

<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web"; tagprefix="CR" %>

3) Go to the Properties of the project, select references and remove crystaldecisions.web of version 10.5.3700

4) In the Properties, click the Add button and then the .NET tab and select crystaldecisions.web version 13.0.2000.0

5) Recompile.

Distribute the CRVS2010 runtime.

MSM:

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_mergemodules_13_0.zip

32 bit MSI:

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0.zip

64 bit MSI:

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0.zip

BTW. the same issue exists with WIN apps. The fix here is much easier; Remove all CR 10.5.3700 references from the project and add references to 13.0.2000 assemblies. (tracking number; ADAPT01506310).

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]