在不同的机器打开有报表项目,会发生的异常:
基类包括字段“ReportViewer1”,但其类型(Microsoft.Reporting.WebForms.ReportViewer)与控件(Microsoft.Reporting.WebForms.ReportViewer)的类型不兼容
解决办法如下:
Going to the Solution Explorer -> [Project Name] -> References -> delete the Report viewer reference and readd the correct one.