Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server."

前端 未结 27 2428
遇见更好的自我
遇见更好的自我 2020-12-13 18:03

I have couple of update panels and jquery tabs on page. And also I am loading couple user controls on update panels. After user waited for couple of minutes (not checked the

相关标签:
27条回答
  • 2020-12-13 18:33
    <add key="aspnet:MaxHttpCollectionKeys" value="100000"/ >
    

    Add above key to Web.config or App.config to remove this error.

    0 讨论(0)
  • 2020-12-13 18:34

    This solution is helpful too:

    Add validateRequest="false" in the <%@ Page directive.

    This is because ASP.net examines input from the browser for dangerous values. More info in this link

    0 讨论(0)
  • 2020-12-13 18:34

    I had this issue when I upgraded my project to 4.5 framework and the GridView had Empty Data Template. Something changed and the following statement which previously was returning the Empty Data Template was now returning the Header Row.

    GridViewRow dr = (GridViewRow)this.grdViewRoleMembership.Controls[0].Controls[0];
    

    I changed it to below and the error went away and the GridView started working as expected.

    GridViewRow dr = (GridViewRow)this.grdViewRoleMembership.Controls[0].Controls[1];
    

    I hope this helps someone.

    0 讨论(0)
提交回复
热议问题