[Last Call] Learn how to a build a cloud-first strategyRegister Now


Crystal Reports: Difference between adding a reference to Assembly and adding dll's

Posted on 2009-04-18
Medium Priority
Last Modified: 2012-05-06
This issue is a bit convoluted but i will try to explain.  It took me 2 seconds to get crystal reports up running and able to be called from my app on my development box.  When i moved to production, it took a while to get it working.  Finally we resorted to installed VS2005 on the box and then it worked.  Recently, I reinstalled the OS on my dev box to a 64 bit system.  Suddenly crystal wasn't working.  I was getting this error on any page in my app that referenced it:

 Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.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)

Normally, with Crystal it would have taken hours to figure this out.  But lo and behold, I just deleted the dll's from the bin folder and added a reference (via right clicking on the solution name ) to all the cyrstal 10.5 GAC assemblies.  Great...my app works again on my development box.

so here's the problem....Can i just rebuild my site and move the entire thing up to production and it will work?  I'm kind of thinking it isn't going to.  And I really don't want one version up on the production box that uses dll while my local copy uses references.  
Question by:davidcahan

Expert Comment

ID: 24175618
I also faced same error.. The scenario is that, at your PC, when you do locally a project, a crystal report runs because in your local PC those assemblies files are added into your Global Assembly Cache (C:\Windows or C:\Program Files -- i dont remeber now). But when you run report at your server/production site it fails as it doesn't find those dlls.. In your case the catch is you are running VS 2005 and may be production server has VS 2005 not supporting CR or its earlier version like VS 2003 or even 2001. Your report would had work even if you didn't install CR as you could have only install Redistriuable for CR 2005/VS 2005 which would have automatically install CR's dll..
Do respond
LVL 101

Accepted Solution

mlmcc earned 2000 total points
ID: 24181855
Check this tutorial on using Crystal with VS2005.  Starting on pagge 434 are tutorials for building an install package for various scenarios


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Loops Section Overview
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month17 days, 15 hours left to enroll

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question