水晶報表時,我使用水晶報表的報告,並在頁面加載我寫這錯誤創建在asp.net MVC2
protected void Page_Load(object sender, EventArgs e)
{
ReportDocument crystalReport = new ReportDocument();
crystalReport.Load(Server.MapPath("CrystalReport.rpt"));
crystalReport.SetDatabaseLogon
("amit", "password", @"AMIT\SQLEXPRESS", "TestDB");
CrystalReportViewer1.ReportSource = crystalReport;
}
和乳寧我發現這個錯誤頁面時。 「c:\ Windows \ assembly \ GAC_MSIL \ CrystalDecisions.Web \ 10.5.3700.0__692fbea5521e1304 \ CrystalDecisions.Web.dll」和「c:\ Windows \ System32」中都存在「CrystalDecisions.Web.CrystalReportViewer」裝配\ GAC_MSIL \ CrystalDecisions.Web \ 13.0.2000.0__692fbea5521e1304 \ CrystalDecisions.Web.dll」