how to solve this error

Jan 4 2013 7:49 AM
Hi friends
  the following is my code for crystal report

int rollno = Convert.ToInt32(textBox1.Text); 
  CrystalReport2 report = new CrystalReport2();
  DataSet1 data = new DataSet1();
  System.Data.SqlClient.SqlConnection sqlcon;
  string config  = System.Configuration.ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
  sqlcon = new System.Data.SqlClient.SqlConnection(config);
  System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand("sp_getstudentforsearchbyrollno", sqlcon);
  cmd.CommandType = CommandType.StoredProcedure;
  cmd.Parameters.Add("@rollno",rollno);
  System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter(cmd);
  da.Fill(data, "DataTable1");
  report.SetDataSource(data);
  crystalReportViewer1.ReportSource = report;

and the error is
 
Could not load file or assembly 'file:///C:\Program Files\
SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies.
 The system cannot find the file specified.

and the error line is

report.setDataSource(data)


Answers (1)