【问题标题】:Ajax Sys.WebForms.PageRequestManagerServerErrorExceptionAjax Sys.WebForms.PageRequestManagerServerErrorException
【发布时间】:2016-03-03 00:23:54
【问题描述】:

一点背景。我有一个 IIS8 服务器。让我们将此服务器称为 ABC。 在服务器 ABC 中。我有两个网站。一个称为网站A 和网站B。它们是相同的网站。由于 websiteB 主要用于测试和开发目的,因此只有细微的区别。

您能帮我解决网站 A 上的问题吗? 该错误是一般错误:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

此错误不会发生在 WebsiteB 中。我已经比较了 ASPX 页面以确保它们完全相同。

您能帮我解决服务器上的错误 500 吗?不知道怎么...

这是 ASPX 页面顶部 ajax 的注册程序集:

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

这是我的工具包的 sn-p

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="True"></asp:ToolkitScriptManager>

【问题讨论】:

    标签: asp.net ajax iis ajaxcontroltoolkit


    【解决方案1】:

    哇。我解决了这个问题。所以为了踢球,我开始从页面上删除东西。 我删除的第一个是这个位。因为在不到一年前,我添加了这一点。

             <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                    </ContentTemplate>
                </asp:UpdatePanel>
    

    然后我收到一条不同的错误消息: 我现在收到此错误:

    System.Web.HttpException: Maximum request length exceeded
    

    对那个错误和繁荣进行了一些谷歌搜索!我得到这个stackoverflow链接: Maximum request length exceeded。我听从了建议,我的问题就消失了!霍雷

    解决方案是将其添加到我的 web.config 中! (粗体部分是我添加的新内容)

    System.webserver 是新位

    executionTimeout="100000" maxRequestLength="214748364"

    <configuration>
      <system.web>
        <compilation debug="true" strict="false" explicit="true" targetFramework="4.5" />
        <httpRuntime targetFramework="4.5" executionTimeout="100000" maxRequestLength="214748364"  />
        <customErrors mode="Off"/>
      </system.web>
      <system.webServer>
        <security>
          <requestFiltering>
            <requestLimits maxAllowedContentLength="1073741824" />
          </requestFiltering>
        </security>
      </system.webServer>
    </configuration>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-19
      • 2012-02-05
      • 1970-01-01
      • 2010-10-16
      • 1970-01-01
      • 2011-07-05
      • 2011-09-01
      • 2011-07-07
      相关资源
      最近更新 更多