Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Viewstate error by adding of any webpart View modes: 
User avatar
Member
Member
J4F - 4/12/2011 5:22:20 AM
   
Viewstate error by adding of any webpart
Hello there

I am trying to ad a common kentico webpart into a selfmade masterpage with webpartzones.

I am doing this all over the kentiko GUI. No coding. And after choosing the webpart, actually this is the text/static HTML, I got the viewstate error shown in the screenhot.
User image
We tried to deactivate the viewstate over the kentico webpartkontroll and late over web.config, but nothing changes.

We tried to increase the viewstate size in IIS Konfiguration from -1 to 40, but the problem still exists.

Now we aren't sure if is it a problem with .Net or is it Kentico itself.

We are running Kentico Build: 4.1.3518 on a 64bit / Win7 Developer PC.

I appreciate any help

J4F

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 4/12/2011 6:16:37 AM
   
RE:Viewstate error by adding of any webpart
Hello,


This issue ordinary happens if somebody do a postback before the whole viewstate of page is loaded, e.g. if viewstate is too long and/or the connection is slow and user submit some button before the page is completely loaded. Unfortunately, this is behavior of .NET platform, it is not caused by CMS.

You may find some help by Google. For example:
http://support.microsoft.com/kb/323744/en-us/
http://www.codeproject.com/Messages/2825802/Re-The-state-information-is-invalid-for-this-page-.aspx


Best regards,
Helena Grulichova

User avatar
Member
Member
J4F - 4/14/2011 2:54:05 AM
   
RE:Viewstate error by adding of any webpart
Thank you for the hints.

They were very interesting, but in my case not the answer.

I found the failure and it was mine. In the template I’ve use was an hidden input field named as viewstate and contained some nonsense datastring.

After removing this field all seems to be OK. No further error.

Thank you again.

I think this thread could also be interesting for other developers.

Best regards

J4F