[CLOSED] Conflict ResourceManager & ScriptManager using ReportViewer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Conflict ResourceManager & ScriptManager using ReportViewer

    Hello!, good afternoon, i'm trying to show a report with several subreports using reportviewer control into a masterpage, but when running the application using some control ext.net or just adding the ResourceManager, then get this error:

    Error: Sys.WebForms.PageRequestManagerServerErrorExceptio n: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request..

    If I remove the ScriptManager no have error, but I can not remove because it uses the reportviewer, if I remove the ResourceManager does not show the report and sends the error. I tested the report with any source, so it is not relevant(the source of report), you can reproduce with any dataset or datasource.

    <%@ Page Title="" Language="VB" MasterPageFile="~/MasterPages/SPYDER.master" AutoEventWireup="false"
        CodeFile="Dashboard.aspx.vb" Inherits="Dashboard" EnableEventValidation="false" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="Server">
        <ext:ResourceManager ID="ResourceManager1" runat="server">
        </ext:ResourceManager>
        <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePartialRendering="true">
        </ajaxToolkit:ToolkitScriptManager>
        <table>
            <tr>
                <td>
                    <rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="511px" Font-Names="Verdana"
                        Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" AsyncRendering="true">
                    </rsweb:ReportViewer>
                </td>
                <td>
    <ul>
                        <li>
                            <ext:Checkbox ID="Checkbox1" runat="server" BoxLabel="Metrica Global Proactividad">
                            </ext:Checkbox>
                            <ext:ComboBox ID="ComboBox1" runat="server" Text="Posicion">
                                <Items>
                                    <ext:ListItem Text="Superior Izquierda" Value="ZSI" />
                                    <ext:ListItem Text="Superior Derecha" Value="ZSD" />
                                    <ext:ListItem Text="Media Izquierda" Value="ZMI" />
                                    <ext:ListItem Text="Media Central" Value="ZMC" />
                                    <ext:ListItem Text="Media Derecha" Value="ZMD" />
                                    <ext:ListItem Text="Inferior Izquierda" Value="ZII" />
                                    <ext:ListItem Text="Inferior Derecha" Value="ZID" />
                                </Items>
                            </ext:ComboBox>
                        </li>
                        <li>
                            <ext:Checkbox ID="Checkbox2" runat="server" BoxLabel="Metrica Global Primer Contacto">
                            </ext:Checkbox>
                            <ext:ComboBox ID="ComboBox2" runat="server" Text="Posicion">
                                <Items>
                                    <ext:ListItem Text="Superior Izquierda" Value="ZSI" />
                                    <ext:ListItem Text="Superior Derecha" Value="ZSD" />
                                    <ext:ListItem Text="Media Izquierda" Value="ZMI" />
                                    <ext:ListItem Text="Media Central" Value="ZMC" />
                                    <ext:ListItem Text="Media Derecha" Value="ZMD" />
                                    <ext:ListItem Text="Inferior Izquierda" Value="ZII" />
                                    <ext:ListItem Text="Inferior Derecha" Value="ZID" />
                                </Items>
                            </ext:ComboBox>
                        </li>
                    </ul><br />
                    <ext:ColorPalette ID="ColorPalette1" runat="server">
                    </ext:ColorPalette>
                </td>
            </tr>
        </table>
    </asp:Content>
    Im using ext.net 1.3 and VS2010, IE9 explorer, Thanks for your help.
    Last edited by Daniil; Apr 26, 2012 at 7:20 PM. Reason: [CLOSED]

Similar Threads

  1. Replies: 5
    Last Post: Apr 28, 2012, 5:21 AM
  2. Replies: 1
    Last Post: Jan 31, 2012, 8:45 AM
  3. ReportViewer error when add a report
    By cmujica in forum 1.x Help
    Replies: 6
    Last Post: Jan 06, 2012, 6:28 PM
  4. Panel + ReportViewer
    By Kipetcoff in forum 1.x Help
    Replies: 1
    Last Post: Jan 27, 2009, 3:52 AM

Tags for this Thread

Posting Permissions