NinethSense oWnZ mE!: Praveen’s drawing book

Choose a Topic:

Wed
10
Oct '07

System.ArgumentException: The serialized data is invalid

Some of you may faced this nasty error. May be while setting up a new web server or after upgrading an ASP.NET project. Well, I didnt not find any 100% good fix for this issue yet. As far as I know, this error occurs only for who have low-speed internet connection and those who do ’something’ before the page load completed. Here are two ways which /may/ help you resolve this issue. Well this worked for me:


1) Do not let the end-user touch keyboard or mouse ;) before the page load is complete. For this you can use some “loading…” technique.

2) Try adding this to your web.config:
 <pages enableViewStateMac=“false” 
        enableEventValidation=“false”
        viewStateEncryptionMode=“Never” 
        maxPageStateFieldLength=“200″ />
The CodeProject Microsoft Developer Network Official ASP.NET Forums Microsoft .NET Framework Community Microsoft Most Valuable Professional Kidoos forums Microsoft Visual Studio Developer Home Professional Information Technology Solutions Microsoft Research Home Trivandrum Microsoft Users Group Community Website