Deploy Crystal Report Application

| March 7, 2012 | 7 Comments

Learn how to deploy crystal report application on production server. Why the same code works fine on development server. But get fail on production server. We would try to understand crystal report issue faced by most of the developers while deployment of crystal report apps.

I googled lot for same issue but information was scattered. And most it was not explaining exactly how to do? Before I start I would like to make excuse that I’m not so much well versed with crystal report. But still I can share collectively that can help anybody in deployment. This article deals especially with Crystal Report Assembly version 13.0.2000.0 (CR for VS 2010). But I hope it would work in any other case.

1. When we develop crystal report application on development server and test, it works fine. Because on local server assemblies required are available to application. Let us take look over code snippet of web.config, which shows assembly added for crystal report:

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

So these assemblies are referenced from GAC (Global Assembly Cache). But if you try to deploy same application on remote server, the application throws errors of different types because same assemblies are not there in GAC.

Many sites and knowledgeable developers share that by installing appropriate CR runtime on remote server, the problem gets resolved. You can download same according to requirements at Crystal Reports v. 9.1 to CRVS2010 Runtime Distribution.

2. If you don’t have access to remote share then you might have the problem in implementing above mentioned solution. In that case you can just copy necessary dll’s required by your application in bin folder. And it will work fine.

When we install CR for VS 2010 on PC, the assemblies needed for application gets copied to directory C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet
. As we have seen in above Web.config assemblies named, just copy those assemblies in Bin folder from above directory, and then remove the assemblies element from web.config.The application would still work nicely.

3. Sometimes application would still not work due to reasons. Solution for same:
(a) Set FULL TRUST permission on root folder.
(b) LOCAL SERVICE permission must be set on application pool.
(c) Make sure the aspnet_client folder exists in root folder.
(d) Grant modify permissions on C:\Windows\Temp from your web application or other way as CR uses that folder for storing files to display reports.

Tags: ,

Category: Asp.Net

Comments (7)

Trackback URL | Comments RSS Feed

  1. Thank you for giving good information about Deploy Crystal Report Asp.Net Application on Server is very nice and useful..

  2. Anonymous says:

    Thanks Dude, Struggled For Days, Read You Post and was up and running in two minutes… phew!

  3. Your post is so interesting. and it is more useful and helpful for me. Thanks for share this valuable post.

  4. Anonymous says:

    Hi, thanks for the post.
    I followed the same steps but I’m getting Could not load file or assembly ‘log4net, Version=, Culture=neutral, PublicKeyToken=692fbea5521e1304′ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) error. My client dont want to install anything on the server…can you please help? Thanks alot…


  5. Edu Barrero says:

    VERY HELPFUL post!!! Thanks so much!!

    But i have some problems when i try yo follow yuor steps.

    1. When you talk about bin directory, do you refeer to bin directory which is generated when publish my website??

    2. When i remove assemblies in web.config, the website build fail, because dont find the namespace

    Please, help me!!

    Thanks again

  6. V.S. Saini says:

    Root folder means your website root folder.

    Application pool item for your website in IIS.

  7. Thanks for your post, very helpful. I have two questions for you:

    On A what exact location do you mean by root folder?

    On B what application pool item should that be set for? I don’t seem to have any Crystal application pool items.


Leave a Reply

%d bloggers like this: