错误“基类包括字段“ReportViewer1”,但其类型(Microsoft.Reporting.WebForms.ReportViewer)与控件(Microsoft.Reporting.WebForms.ReportViewer)的类型不兼容。”
1、 手动添加引用


2、 后台代码引入命名空间“Microsoft.ReportingServices.WebServer”
using Microsoft.Reporting.WebForms;
3、 前台引入ScriptManager控件
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
本文解决了一个特定的ReportViewer错误:基类包含字段ReportViewer1,但类型与控件不兼容。解决方案包括手动添加引用、引入命名空间Microsoft.Reporting.WebForms及添加ScriptManager控件。
5528

被折叠的 条评论
为什么被折叠?



