Deploy Crystal Report Application

| March 7, 2012 | 13 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:

<assemblies>
                <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">
            </add>
</add></add></add></add></assemblies>

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 (13)

Trackback URL | Comments RSS Feed

  1. Thanks for the marvelous posting! I seriously enjoyed reading it, you
    are a great author.I will remember to bookmark your blog and will
    often come back at some point. I want to encourage continue your great job, have a nice weekend!

  2. I just want to mention I am newbie to weblog and absolutely loved you’re web-site. Likely I’m planning to bookmark your website . You certainly come with amazing writings. Cheers for sharing with us your webpage.

  3. Alana Lamery says:

    yeah bookmaking this wasn’t a high risk conclusion great post! .

  4. I just like the helpful info you provide on your articles. I’ll bookmark your weblog and test again right here regularly. I’m moderately sure I will be informed lots of new stuff right right here! Best of luck for the following!

  5. I just want to say I am very new to blogging and site-building and certainly liked your web site. Most likely I’m planning to bookmark your blog post . You certainly have perfect stories. Regards for revealing your webpage.

  6. Anonymous says:

    Hello, I believe your site may be having internet browser compatibility issues.
    Whenever I look at your web site in Safari, it looks
    fine however when opening in Internet Explorer, it’s got some overlapping issues. I merely wanted to give you a quick heads up! Aside from that, wonderful website!
    Look at my web blog :: how to delete cookies from computer

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

  8. Anonymous says:

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

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

  10. Anonymous says:

    Hi, thanks for the post.
    I followed the same steps but I’m getting Could not load file or assembly ‘log4net, Version=1.2.10.0, 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…

    Shreyash

  11. 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

  12. V.S. Saini says:

    Root folder means your website root folder.

    Application pool item for your website in IIS.

  13. 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.

    Thanks.

Leave a Reply

Sex Chat Live Jasmin WP-Clear 3.0 Theme
%d bloggers like this: