错误“基类包括字段“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错误,该错误涉及到字段类型与控件类型的不兼容问题。解决方案包括手动添加引用、引入命名空间“Microsoft.ReportingServices.WebServer”及使用ScriptManager控件。
9225

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



