Dotnet 2003 to 2008 conversion - CrystalDecisions Error

Posted on 2009-04-06
Last Modified: 2013-12-17
Hi ,

I have an application in 2003 which I have converted into 2008. After compilation I get an error
The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)      

But when I add the reference of the required DLL I still get the same error.

Can any one please tell me exactly where I am making the mistake.

Question by:SriChary
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2

Expert Comment

ID: 24084239
Have you deleted the earlier reference ?

Author Comment

ID: 24084291
Hi  johny_bravo1,

Actually, we have this application written in dotnet2003 from vendor who also gave us the code. Now we to have optimize the performance and update it. We have 2008 on our machines. No one actually till date actually tried debugging on the 2003 version. Therefore I am facing this problem.

Are you suggesting that I should have dotnet2003 software also on my PC?

Expert Comment

by:Sreedhar Vengala
ID: 24084337
Hello Sri..

If you are developing an application using one of the Crystal Reports SDKs for Visual Studio, you need to deploy the Crystal Reports Runtime on each computer where your application is expected to run.

for further info check : 
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.


Expert Comment

ID: 24084389
I think Since you upgraded, you probably have more than one instance of CrystalDecisions.CrystalReports.Engine in the GAC.  What you need to do is add the assembly information to your local web.config.  

<system.web>   <compilation ....>      <assemblies>         ....         <add assembly="CrystalDecisions.CrystalReports.Engine, Version=x.x.x.x, Culture=neutral, PublicKeyToken=[Your PKT]"/>         <add assembly="CrystalDecisions.ReportSource, Version=x.x.x.x, Culture=neutral, PublicKeyToken=[Your PKT]"/>         <add assembly="CrystalDecisions.Shared, Version=x.x.x.x, Culture=neutral, PublicKeyToken=[Your PKT]"/>         <add assembly="CrystalDecisions.Web, Version=x.x.x.x, Culture=neutral, PublicKeyToken=[Your PKT]"/>         ....      compilation>   ....</system.web>

Open in new window


Author Comment

ID: 24085794
Hi sree_ven,

I have tried installing the CRRedist2008_x86.msi  but  there is no change in the error. Infact now it is giving error as

The type or namespace name 'Web' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)


Surprisingly these entries are already present in the web.config file.

Can there be any other reason.


Accepted Solution

Sreedhar Vengala earned 500 total points
ID: 24085925
Hello Sri
Check the references in the Controls. Look at the Microsoft.Web.Atlas reference. It may have a warning sign in the icon. This means that the reference is not found. Delete the reference and make a new reference to the assembly. You need the to Atlas bits that contain the assembly.

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 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