Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sys.WebForms.PageRequestManagerServerErrorException:

Status
Not open for further replies.

rrhandle8

Programmer
May 9, 2008
10
US
Started getting this error on the live site yesterday, but everything works fine on my pc. Not much luck Googling it. At first there were about 5 errors like this one. I deleted a validation control I was not using any more, and now I get just these two error below. In fact, I deleted all the validation control in an attempt to fix the error.

Any hints or suggestions?


==========================

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; AskTB5.6)
Timestamp: Sat, 5 Feb 2011 18:20:44 UTC


Message: Sys.WebForms.PageRequestManagerServerErrorException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Line: 4723
Char: 21
Code: 0
URI:


Message: Sys.WebForms.PageRequestManagerServerErrorException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Line: 4723
Char: 21
Code: 0
URI:
 
I did a quick search on the exception and it could be related to a corrupt viewstate, or an invalid viewstate.
try disabling event validation
Code:
<%@ Page ... EnableEventValidation="false" %>
or increasing the length of the viewstate request length.

however, searching on the full exception message the above suggestions may not solve the problem.

you say this works locally, but not in production. the problem is your development box is drastically different than a production environment to deploy from your local box directly to the production server is a bad idea for this exact reason. do you have a staging/testing server? if so how closely does it mimic the production server? the closer the better. Can you reproduce the error on the staging server?

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Jason, I took your advise on the EnableEventValidation="false".
Curious, I now have a permissions error before the page can load.
The error occurres on the "grid1.DataBind()" line. This has been working for days, so I must have permissions.





Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:


Line 172: grid1.ClearPreviousDataSource()
Line 173: grid1.DataSource = dsCurrentTasks 'myReader
Line 174: grid1.DataBind()
Line 175:
Line 176: 'myConn.Close()


Source File: C:\Domains\ticketstoregame.com\ Line: 174
 
Answer found:

I had a 3rd-party grid on the page. It is from Obout. One of the default settings is grid1.Serialize = True. I found others on Google with the same problem of the grid working on the local machine, but not on the live site. You just have to change it to grid1.Serialize = False.

see this link:
 
excellent!

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top