Failed to load viewstate in specific case

I am generating some controls dynamically from code-behind on a small form.  One of the controls can be the Syncfusion.JavaScript.Web.DatePicker control.  Most of the time, when I submit the form, everything is fine.  However, if the DatePicker is the "first" control I create, then I get an 500 Server Error Failed to Load Viewstate.  The error is thrown immediate after Page_Init.  I am not altering anything in that function.  

I was using version 17 of your controls on .NET 4.5.1.  I just updated to version 19 and targeting .NET 4.7.2.  The same thing is happening. 

I have attached some generated code and the error message.  The only difference is the position of the DatePicker on the form.  Any idea why this might be happening?

Attachment: sample_a519238e.zip

1 Reply 1 reply marked as answer

SS Sharon Sanchez Selvaraj Syncfusion Team June 16, 2021 02:13 PM UTC

Hi Kimberly, 
 
Thanks for contacting Syncfusion support. 
 
We checked the reported issue with your provided attachments. We have rendered the DatePicker similar to your scenario in the server side using VB with the latest package version along with the .NET version(4.7.2) mentioned in this ticket.However, we are unable to replicate the mentioned issue. 
 
Refer to the sample link: 
 
 
Also, we suspect that the issue might have raised specific to your application scenario. 
 
Please refer to the below blogs and check whether the issue gets resolved with the suggested solutions. 
 
 
 
If the issue persists, kindly modify the above sample to replicate your issue else share the complete code snippet used in your end to assist you promptly. 
 
Please get back to us if you need further assistance. 
 
Regards, 
 
Sharon Sanchez S. 


Marked as answer
Loader.
Up arrow icon