IE8上的Sys.WebForms.PageRequestManagerServerErrorException错误

问题描述 投票:3回答:1

我有2个.aspx页面。 1. Reporter.aspx 2. Report.aspx Inside Reporter.aspx我有一个IFRAME,Report.aspx在将Report.aspx提交给服务器(加载报告)之后保存在I​​FRAME中,我想做另一件事,比如显示一些进展或类似的东西。我的页面如下所示

Reporter.aspx:....................

<body style="margin:2px;">
    <form id="Form1" runat="server">   
    <dx:ASPxPopupControl ClientInstanceName="LoadingPanel" ID="LoadingPanel" HeaderText="Progress" runat="server" ShowCloseButton="false" CloseAction="None"
        PopupHorizontalAlign="WindowCenter" EnableClientSideAPI="true" PopupVerticalAlign="WindowCenter" ShowShadow="true" Modal="true">
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server">
                <asp:Panel ID="Panel2" Height="75px" Width="275px" runat="server">
                    <center>
                        <div id="dvStatus" style="width:100%; font-family:Verdana; font-size:10px; color:Red;" >Loading....</div>
                        <div>
                            <img src="../Content/images/loading_big.gif" alt=""/>
                        </div>
                    </center>       
                </asp:Panel>
            </dx:PopupControlContentControl>
        </ContentCollection>                        
    </dx:ASPxPopupControl>
    </form>
    <div style="width:100%; overflow:hidden;">
        <iframe id="IFrame2" style="width:100%; border:0px; height:1125px; overflow:hidden;" frameborder="0" src="Report.aspx"></iframe>
    </div>
</body>

Report.aspx:..................

<body style="overflow: hidden;">                   
    <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="7200">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                    <div id="dvReportSettings" runat="server" style="float: left; width: 320px;" class="filterAndReport">                            
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>                                    
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                        </div>
            <dx:ASPxButton ID="btnGenerateReport" OnClick="btnGenerateReport_Click" Height="35px"
                            Width="100%" runat="server" Text="Generate" AutoPostBack="false">
                                <ClientSideEvents Click="function(s,e){ValidatePage(s,e)}" />
                        </dx:ASPxButton>
        </ContentTemplate>
        </asp:UpdatePanel>                   
</body>

我有一个ID =“btnGenerateReport”的按钮,当我点击它时,它会加载报告。一些大型报告需要大约2个小时才能生成,这就是我在asp:ScriptManager中设置AsyncPostBackTimeout =“7200”的原因。它可以在FireFox,Google Chrome,Safari等不同浏览器中完美运行,但在IE浏览器中则无法运行。当我使用浏览器IE8单击Generate按钮时,几秒钟后它会显示以下javascript错误:

网页错误详情

用户代理:Mozilla / 4.0(兼容; MSIE 8.0; Windows NT 6.1; WOW64; Trident / 4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDC; .NET4.0C; .NET4.0E)时间戳:2011年5月25日星期三10:47:06 UTC

消息:Sys.WebForms.PageRequestManagerServerErrorException:在服务器上处理请求时发生未知错误。从服务器返回的状态代码是:12002行:4723字符:21代码:0 URI:http://localhost:64191/ScriptResource.axd?d=p4fjjEQSSdv063Ae96jd9UCqVNGWjRlsLyZLXU0H9gBYlcdCHSPhZBNLbZ-4XLN3zCzBInKdXuLlu4E1PtquQ3YdrPS-9wlk1EreB5wn-imBkTqz02jjBS_01qg6c4ObcqXGRK8Ejgyb3pvKkcBSH5V7xOadF8Jl4MSwWwtSDUBqxwNH0&t=fffffffff9d85fa6

然后我把EnablePartialRendering =“false”放到asp:ScriptManager中,试着看看我是否能看到一些区别。在此之后,我点击使用IE8生成报告按钮,并在几秒钟后发现另一个javascript错误,如10-15。这是错误:

网页错误详情

用户代理:Mozilla / 4.0(兼容; MSIE 8.0; Windows NT 6.1; WOW64; Trident / 4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDC; .NET4.0C; .NET4.0E)时间戳:2011年5月25日星期三08:27:19 UTC

消息:意外调用方法或属性访问。行:264字符:5代码:0 URI:res://ieframe.dll/httpErrorPagesScripts.js

有没有人可以帮助我摆脱这个IE错误。我遇到了严重的麻烦。

regrads,

Mohin酒店

asp.net-ajax
1个回答
0
投票

状态代码12002建议脚本超时。虽然您已在客户端上设置超时(对于异步postbck),但服务器端在web.config或page指令中具有自己的ScriptTimeout设置。

此外,我不明白为什么你需要嵌套的更新面板。从你对你正在做的事情的描述应该是足够的。在更新面板外部生成“生成报告”按钮,并在“生成报告”按钮单击的“更新”面板中添加触发器元素。

检查IE选项中的插件,可能会禁用所有这些插件。

© www.soinside.com 2019 - 2024. All rights reserved.