Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ViewState invalid only in Safari

One of the sites I maintain relies heavily on the use of ViewState (it isn't my code). However, on certain pages where the ViewState is extra-bloated, Safari throws a "Validation of viewstate MAC failed" error.

This appears to only happen in Safari. Firefox, IE and Opera all load successfully in the same scenario.

like image 273
Anthony Main Avatar asked Aug 04 '08 12:08

Anthony Main


1 Answers

While I second the Channel 9 solution, also be aware that in some hosted environments Safari is not considered an up-level browser. You may need to add it to your application's browscap in order to make use of some ASP.Net features.

That was the root cause of some headaches we had for a client's site that used the ASP Menu control.

like image 62
Rob Allen Avatar answered Oct 09 '22 11:10

Rob Allen