I have run into this bug, as it appears many others have. I'm worried though, because it seems based on the other thread about this problem that everyone is able to get around the problem by using the first workaround (disabling cookie caching in the role manager), but in my application, that doesn't work. This troubles me. I am able to use the 3rd workaround (disable event validation on the page), so for the time being I'm OK, but I don't understand why the fix that works for everyone else doesn't work in my case.
My situation is outlined below ... any idea why the disabling cookie caching for roles workaround won't work in this case?
I am using roles, and the page
that I am having problems with manipulates users and their roles, but I am
NOT using a custom provider for roles. I am using the builtin ASP.NET
Sql Role provider, and a connection to my SQL db to store roles data.
My web.config, as it pertains to roles looks like:
<roleManager enabled="true" cacheRolesInCookie="false" createPersistentCookie="false">
<providers>
<remove name="AspNetSqlRoleProvider" />
<add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
</roleManager>
As for my page, it contains 3 update panels (all set
to conditional updating). One panel contains un-editable user
information. The 2nd lists all roles with checkboxes and a save button,
allowing the admin to select which roles to put a user in. The 3rd is a
list of linkbuttons to perform actions on a user (such as set
IsApproved to true or false, or to unlock a locked out user). When I select some roles and click the save button in the 2nd UpdatePanel, or click one of the LinkButtons in the 3rd UpdatePanel, I get the PageRequestManagerServerErrorException error.
As I said, I'm able to use the 3rd workaround suggestion (disable event validation on the page) to get around it, but I'm curious why disabling of cookie caching in the role manager doesn't work for me, when it DOES seem to work for everyone else ...
The Wheel is turning and you can't slow it down, can't let go and you can't hold on. You Can't go back, and you can't stand still, If the thunder don't get ya then the lightning will!