簡易模式:"ErrorReportPage.aspx" mode設定Off,或"ErrorReportPage.aspx" mode設定為RemoteOnly,且於Client端執行:
偵錯模式:"ErrorReportPage.aspx" mode設定為RemoteOnly,且於Server端執行:
'/OGWeb' 應用程式中發生伺服器錯誤。[HttpException (0x80004005): 超出最大的要求長度。] System.Web.HttpRequest.GetEntireRawContent() +11974541 System.Web.HttpRequest.GetMultipartContent() +85 System.Web.HttpRequest.FillInFormCollection() +248 System.Web.HttpRequest.EnsureForm() +94 System.Web.HttpRequest.get_Form() +16 System.Web.HttpRequest.get_HasForm() +11969534 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +106 System.Web.UI.Page.DeterminePostBackMode() +85 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +232
ASP.Net程式預設畫面回傳資訊不可超過4MB。當複雜畫面回傳或是上傳大檔案時,便可能超過4MB限制,而發生此錯誤訊息。 可以修改web.config,加大此限制,搜尋httpRuntime,設定maxRequestLength="10000"。 若還會發生此錯誤,可將maxRequestLength值再加大 Ex: <httpRuntime executionTimeout="100" maxRequestLength="10000" /> maxRequestLength預設是4MB,最大限制大小是2GB,單位為KB。
最後檢閱日期:2022/09/30 適用門將版本號:1.0含以上 問題編號:2019022201