User-91993069 posted
I am facing below error when Working with crystal report in mvc
{"Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommonObjectModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.":"CrystalDecisions.ReportAppServer.CommonObjectModel,
Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"}
HomeController.cs
public class HomeController : Controller
{
private readonly studentdbEntities _studentdbEntities;
public HomeController()
{
_studentdbEntities = new studentdbEntities();
}
// GET: Home
public ActionResult Index()
{
return View(_studentdbEntities.students.ToList());
}
public ActionResult ExportStudent()
{
List<student> allCustomer = new List<student>();
allCustomer = _studentdbEntities.students.ToList();
ReportDocument rd = new ReportDocument();
rd.Load(Path.Combine(Server.MapPath("~/Report"), "CrystalReport1.rpt"));
rd.SetDataSource(allCustomer);
Response.Buffer = false;
Response.ClearContent();
Response.ClearHeaders();
Stream stream = rd.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
stream.Seek(0, SeekOrigin.Begin);
return File(stream, "application/pdf", "student.pdf");
}

line no:40 give an error
help