找不到方法:'System.Web.UI.Control System.Web.UI.UpdatePanel.get_ContentTemplateContainer()'

时间:2013-09-17 17:28:53

标签: c# asp.net-mvc webforms reportviewer

我在mvc项目的aspx中有reportviewer

<form id="form1" runat="server">

    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>                           
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" AsyncRendering="False" Width="800"></rsweb:ReportViewer>            
    </div>
</form>

我收到此错误:

 Method not found: 'System.Web.UI.Control System.Web.UI.UpdatePanel.get_ContentTemplateContainer()'.

Reportviewer被引用。我在web.config

中有这个
<assemblies>
    <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
    <add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
</assemblies>

<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</handlers>

0 个答案:

没有答案