Friday, 6 February 2015

CrystalReport: The Type or Namespace name 'CrystalDecisions' Could not be Found in Visual Studio 2010/2012


Hello Friends ,

In this article I will explain how to solve crystal report namespace error in visual studio 2010/2012
Introduction:

Currently working with one of the crystal report project we found one error: “The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?” in visual studio 2012

Here I will explain how to solve problem of “The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?” in visual studio 2010/2012 while using crystal reports in windows/Web application in c#vb.net.

Solutions:
This error mainly occurs because of pointing our application to .NET Framework 4 Client Profile like as shown below
Step 1: Right Click on your Application 
Step 2: Go to Properties Select Application Tab


Step 3: To fix this problem we need to change Target Framework version from .NET Framework 4 Client Profile to .NET Framework 4


Once we change our Target Framework version to .NET Framework 4 build the application and check it will fix the error

Hope this helped you to solve your error

Happy Programming!!

Don’t forget to leave your feedback and comments below!

If you have any query mail me to Sujeet.bhujbal@gmail.com     

Regards
Sujeet Bhujbal
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


0 comments :

Post a Comment