Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm getting the following error on using crystal report in my asp.net 3.5 a3-tier application

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

the namespaces I have included are:

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using MorvelNew.Report;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Web;
like image 603
Zoya Avatar asked Jul 28 '12 10:07

Zoya


1 Answers

  1. Right-click on "References" and select "Add Reference..."
  2. Go to "Extensions"
  3. Find "CrystalDecisions.Web"

and add namespace.

like image 111
Kandarp Vyas Avatar answered Sep 18 '22 16:09

Kandarp Vyas