Error With Publishing Crystal Report

Posted by Cibin under Visual Studio on 5/15/2013 | Points: 10 | Views : 2224 | Status : [Member] | Replies : 3
I am working on VB.NET(Visual studio 2010)..I completed developing my application and i need to deploy the application. I tried it and faced problems in some areas like adding crystal reports to the setup and deployment. I created a setup file to my application and everything is fine except crystal reports...

its showing the error like;

An error occurred in crystalDecisions.Reports, crystalEngine threw exception.

could anyone help me out plzzzz...its urgent....

Thanks & Regards




Responses

Posted by: Jenniffer on: 5/15/2013 [Member] Starter | Points: 25

Up
0
Down
See This code..... If This code usefull please mark it as answer
 Download source file

Thanks & Regards
JENI

Cibin, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Cibin on: 5/15/2013 [Member] Starter | Points: 25

Up
0
Down
Actually ,, Crystal Report is not working when am installing my software in another system

Cibin, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jenniffer on: 5/15/2013 [Member] Starter | Points: 25

Up
0
Down
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).


Thanks & Regards
JENI

Cibin, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response