2016-03-03 24 views
0

有點背景。我有一個IIS8服務器。讓我們打電話給這臺服務器ABC。 在服務器ABC中。我有兩個網站。一個被稱爲websiteA和websiteB。他們是相同的網站。由於websiteB主要用於測試和開發目的,因此只有微妙的差異。Ajax Sys.WebForms.PageRequestManagerServerErrorException

你能幫我解決一下WebsiteA上的問題嗎? 錯誤是一般性錯誤:

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" %> 

這是我的工具箱

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

回答

0

片斷哇。我解決這個問題。因此,我開始從網頁中刪除東西。 我刪除的第一個是這個位。因爲在不到1年的時間裏,我加了這一點。

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

然後我得到一個不同的錯誤信息: 現在我得到這個錯誤:

System.Web.HttpException: Maximum request length exceeded 

難道是錯誤和繁榮的一些谷歌!我得到這個計算器鏈接: Maximum request length exceeded。我遵循這個建議,我的問題就消失了! Horray

解決的辦法是在我的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> 
相關問題