Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error

Tags:

.net

webforms

I have created a text area that allows users to enter html code. When I attempt to post this code back to the server, I get a popup window that says "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occured while processing the request on the server. The status code returned from the server was: 500".

I believe this has something to do with the fact that what I am posting back contains html.

How do I do this safely and without causing this error message?

Thanks!

like image 924
Bob Jones Avatar asked Apr 08 '26 17:04

Bob Jones


1 Answers

It's a very generic error seemingly caused by any number of things unfortunately, from app recycling, corrupted cookies, RoleManager, anything..

For reference:

  • http://forums.asp.net/p/1046935/1576341.aspx#1576341
  • http://forums.asp.net/p/1069384/1555817.aspx

I would strongly advise against turning validation off, that's not fixing the problem it's merely hiding the symptom and it's opening the door to XSS to do so.

like image 153
annakata Avatar answered Apr 11 '26 02:04

annakata