Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net Ajax Sys.WebForms.PageRequestManagerServerErrorException_Asp.net_Ajax_Iis_Ajaxcontroltoolkit - Fatal编程技术网

Asp.net Ajax Sys.WebForms.PageRequestManagerServerErrorException

Asp.net Ajax Sys.WebForms.PageRequestManagerServerErrorException,asp.net,ajax,iis,ajaxcontroltoolkit,Asp.net,Ajax,Iis,Ajaxcontroltoolkit,有点背景。我有一台IIS8服务器。我们把这个服务器称为ABC。 在服务器ABC中。我有两个网站。一个叫做websiteA和websiteB。它们是相同的网站。只有细微的区别,因为websiteB主要用于测试和开发目的 你能帮我解决网站上的问题吗? 该错误为一般错误: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the s

有点背景。我有一台IIS8服务器。我们把这个服务器称为ABC。 在服务器ABC中。我有两个网站。一个叫做websiteA和websiteB。它们是相同的网站。只有细微的区别,因为websiteB主要用于测试和开发目的

你能帮我解决网站上的问题吗? 该错误为一般错误:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
此错误不会发生在Web站点B中。我比较了ASPX页面,以确保它们完全相同

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

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

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

这是我的工具包的代码片段

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

哇。我把这个修好了。所以为了好玩,我开始从页面上删除内容。 我移除的第一个是这个位子。因为在不到一年前,我添加了这一点

         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                </ContentTemplate>
            </asp:UpdatePanel>
谷歌做了一些错误和繁荣!我得到这个stackoverflow链接: . 我听从建议,我的问题就消失了!霍雷

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

System.webserver是新的bit

executionTimeout=“100000”maxRequestLength=“214748364”


System.Web.HttpException: Maximum request length exceeded
<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>