【发布时间】:2025-12-06 19:40:01
【问题描述】:
我使用水晶报告做了一个报告,在页面加载中我正在写这个
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;
}
在运行页面时我发现了这个错误。
CS0433:“c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\10.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll”和“c:\Windows\assembly”中都存在“CrystalDecisions.Web.CrystalReportViewer”类型\GAC_MSIL\CrystalDecisions.Web\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Web.dll'
【问题讨论】:
标签: visual-studio-2010 asp.net-mvc-2 crystal-reports