Excepción:
Exception information:Exception type: HttpException
Exception message: Se excedió la longitud de solicitud máxima.
en System.Web.HttpRequest.GetEntireRawContent()
en System.Web.HttpRequest.GetMultipartContent()
en System.Web.HttpRequest.FillInFormCollection()
en System.Web.HttpRequest.EnsureForm()
en System.Web.HttpRequest.get_Form()
en System.Web.HttpRequest.get_HasForm()
en System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
en System.Web.UI.Page.DeterminePostBackMode()
en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Solucion:
En nuestro web.config del sitio web:
<httpRuntime maxRequestLength="40960" requestValidationMode="4.0" executionTimeout="360" targetFramework="4.6.1" />
<configuration>
<system.web>
<httpRuntime maxRequestLength="Tamaño" />
</system.web>
</configuration>
<system.web>
<httpRuntime maxRequestLength="Tamaño" />
</system.web>
</configuration>
Excelente, me funcionó. Pero el problema original es que mi pagina mostraba una imagen de 8 MB.
ResponderEliminarMuchas gracias! soluciono mi problema con la descarga de un documento excel.
ResponderEliminaren mi app lo tenia asi:
Gracias!!
ResponderEliminarMuchas gracias!!!
ResponderEliminar