Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0 C#3.0 Visual-Studio C#4.0 , +
i have configured my website in IIS crystal report is showing some errors .
 
its printing from first page when i search the report its printing from first page .
 

i have installed visual studio 2010...

SAP Crystal report Version Visual studio 2010,

SAP Crystal report runtime engine for .NET framework 4 (32-bit)

---------------

Error 10 Unknown server tag 'CR:CrystalReportViewer'. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 132

---------------

Error 4 Could not load file or assembly 'CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 5

----------------

Error 7 Could not load file or assembly 'CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 8

------------------

Error 8 Could not load file or assembly 'CrystalDecisions.ReportAppServer.XmlSerialize, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.- C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 9

-------------------

Error 9 Could not load file or assembly 'CrystalDecisions.ReportAppServer.ObjectFactory, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 10

---------------

Error 5 Could not load file or assembly 'CrystalDecisions.ReportAppServer.Controllers, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 6

----------------

Error 6 Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. C:\inetpub\wwwroot\Mreport\aspnet_client\system_web\4_0_30319\crystalreportviewers13\preview.aspx 7
 

i am using this code
 
using CrystalDecisions.Web;
using CrystalDecisions.Shared;
 
public partial class About : System.Web.UI.Page
{
    SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["con"].ToString());
    SqlCommand cmd = new SqlCommand();
    SqlDataAdapter da = new SqlDataAdapter();
    DataTable dt = new DataTable();
    DataTable dt1 = new DataTable();
    protected void Page_Load(object sender, EventArgs e)
    {
        ReportDocument crystalReport = new ReportDocument();
        crystalReport.Load(Server.MapPath("CrystalReport2.rpt"));
        crystalReport.SetDatabaseLogon("sa", "123456789", @"TRAINING-ROOM-8", "newMreport");
        CrystalReportViewer1.ReportSource = crystalReport;
    }
 protected void Button2_Click(object sender, EventArgs e)
    {
 SqlCommand cmd = new SqlCommand("SELECT * FROM Transactions where Patient = @Patient   ");
                cmd.Connection = con;
                cmd.Parameters.Add("@Patient", SqlDbType.NVarChar).Value = TextBox3.Text;
                SqlDataAdapter da = new SqlDataAdapter(cmd);
                dt.Clear();
                da.Fill(dt);
if (dt.Rows.Count > 0)
            {
 
                ReportDocument Report = new ReportDocument();
                Report.Load(Server.MapPath("~/CrystalReport2.rpt"));
                Report.SetDataSource(dt);
                Report.SetDatabaseLogon("sa", "123456789", @"TRAINING-ROOM-8", "newMreport");
                CrystalReportViewer1.ReportSource = Report;
                CrystalReportViewer1.ReportSource = Report;
                CrystalReportViewer1.DataBind();
              
            }
}
Posted 1-Jan-13 20:48pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

it could be problem related to
CrystalDecisions.Web, Version=12.0.2000.0
 
make sure version of crystal report installed on server is same as used in development.
 
and install .net framework 2.0 also, because mostly crystal report need it as prerequisite.
 
Happy Coding!
Smile | :)
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

i have installed visual studio 2010...
 
SAP Crystal report Version Visual studio 2010,
 
SAP Crystal report runtime engine for .NET framework 4 (32-bit)
these are installed in my server
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Dear muqeet,
 
Please Install Business Objects for Crystal Reports.
 
May be this will help you.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

can you send me the download link for Business Objects for Crystal Reports.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 475
1 Maciej Los 339
2 Richard MacCutchan 225
3 BillWoodruff 219
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,759
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,269
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411028.1 | Last Updated 9 Aug 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100