[CLOSED] Conflict ResourceManager & ScriptManager using ReportViewer

  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]
  2. #2
    Hi,

    Are you dynamically creating any controls when this Page (or MasterPage) is loaded?
    Geoffrey McGill
    Founder & CEO
  3. #3
    Yes, im creating control's on the master with a user control!, but even removing the dynamic loading of controls, the error still appears.
  4. #4
    ViewState problem can be releated with different sequence of control creation
    It is required to see full test sample to understand the source of problem

    As workaround, you can place report viewer to a separate page (without resource manager and Ext.Net widgets) and load that page to the Ext.Net panel via AutoLoad (with IFrame mode)
    Vladimir Shcheglov
    Sr. Developer
  5. #5
    Autoload loads it as an iframe?, if I need to pass parameters would have to do it by querystring or there another way?, thanks for your help.
  6. #6
    Parameters can be passed via query string only in iframe case
    Vladimir Shcheglov
    Sr. Developer
  7. #7
    You can define parameters for AutoLoad and Ext.Net panel automatically adds it to url as query string
    Vladimir Shcheglov
    Sr. Developer
  8. #8
    Thanks for your help!.

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. DataView name conflict
    By Justin_Wignall in forum Feature Requests
    Replies: 2
    Last Post: Mar 28, 2009, 7:00 AM
  5. 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