Martin

We have received some other reports about similar issues that happen randomly on our clients servers. However none of our customers managed to isolate the problem in sample which we can inspect and debug. The only thing I could advice you is to temporarily disable the viewstate compression (you can still keep the HTTP compression though) and verify whether the problem replicates. Note that since the issue replicates on a random basis you may need some time to test the page before you confirm that the problem is resolved when viewstate compression is disabled.

Regards,
Martin
the Telerik team

If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

Pulkit

I am also getting same sort of exception with sitefinit, and after some investigations i have some points to make, which may help to replicate and relsove the issue.

I have deployed a page with sitefinity which contains a asp.net's custom control and then reterived its viewstate by simply following these steps :- Right Click on page -> select View Source option and then find the value for __Viewstate hidden field
REF:- inputtype="hidden"name="__VIEWSTATE"id="__VIEWSTATE"value="/wEPDwUKMTkxNDY1OTk5NGRkuqjLsqCspQ/KzOgJiU/nXOTrq+ZuE7MNLMEBN8U2Ilc="/>

It Contains some telerik controls like "RadMaskedTextBox and RadGrid" :- inputtype="hidden"name="__VIEWSTATE"id="__VIEWSTATE"value="/wEPDwULLTEzMTMwNTAzNzUPZBYCZg9kFgICAw9kFhgCBQ9kFgRmD2QWAgIBDw8WAh4EVGV4dAUHVXNlcjAxOWRkAgIPDxYCHgdWaXNpYmxlaGRkAgkPDxYCHgtOYXZpZ2F0ZVVybAUdaHR0cDovL3B3MjAxMnFhLnJjc25ldC5sb2NhbC9kZAILDxYCHwFoZAIPDxYCHwAFDjEtODAwLTczNy0xMTkyZAIhDxYCHgVjbGFzcwUHY3VycmVudGQCNQ8WAh8BaGQCNw8WAh8BZ2QCOw88KwAFAQAPFgIeD1NpdGVNYXBQcm92aWRlcgUKU2l0ZU1hcC5lbmRkAj0PZBYCAgEPZBYKAgIPFgIfAAUPVGF3YW5uYSBTIEJyb3duZAIFDxYCHgtfIUl0ZW1Db3VudAIBFgICAQ9kFgQCAQ8QDxYCHwAFCjIwMDAzNzk4NTFkZGRkAgIPFQQPVGF3YW5uYSBTIEJyb3du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G9jYWwvZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFN2N0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkQzAwMiRyZXBMb2FucyRjdGwwMSRjaGtTZWxlY3T5f6rhRGVyRD5N/icRwjkJVEJrL8i7A14RJv0YDU0y3w=="/>

Now, if on the same page I add radasyncupload Telerik controls like and then reterive its viewstate and try to decode, it will throw you error " Couldn't decode the View State. The error was: 'Invalid length for a Base-64 char array."
REF:-

Martin

As you probably know the idea of viewstate compression is minimizing the Page footprint as well as reducing the bits sent over the wire. This benefits are achieved by changing (compressing) the viewstate on the server before it is send to the client and decompressing it before it is restored on the server on a postback. Since the compression actually changes the viewstate string saved in the hidden field, it is expected that Base64 decoding tools fail to decode it on the client when it is compressed. This explains why you observe the problem on our live website, because we have viewstate compression enabled there.

As to the scenario where viewstate can't be decoded after an AsyncUpload is added to the page - I am afraid that I would need a sample code to debug locally. I would also need the exact web config settings and RadControls version that replicates the problem on your side.

I hope this helps.

Regards,
Martin
the Telerik team

If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.