Form Wizard Pro Exception:

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/23/2013 1:53:26 PM
Gravatar
Total Posts 68

Form Wizard Pro Exception: Failed to load viewstate.

Hi Joe,

Upgraded to the latest MP and FWP. Seeing an exception following form submit:

2013-09-23 11:39:38,962 ERROR - en-US - useragent Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0; Touch)
System.Web.HttpException (0x80004005): Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.Add(Control child)
   at sts.FormWizard.Web.UI.FormWizardModule.SetupQuestions(List`1 questions, Int32 pageNumber)
   at sts.FormWizard.Web.UI.FormWizardModule.PopulateQuestions()
   at sts.FormWizard.Web.UI.FormWizardModule.PopulateControls()
   at sts.FormWizard.Web.UI.FormWizardModule.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Reverted back to the previous version with no errors.

Environment: MP 2.3.9.9/MSSQL/.NET4/FullTrust/FWP 2.6.1.2

9/23/2013 2:06:55 PM
Gravatar
Total Posts 18439

Re: Form Wizard Pro Exception:

Hi,

That kind of error can only happen if something changed between the time the page originally loaded and when postback occurs. ie that error could be caused by loading the page in one browser window and then in another browser window changing the skin of the page. Now when the page posts back still using the old skin it would cause this error.

Other than that I know of no way to produce that error except by script bots that cause viewstate errors on purpose.

There is no known bug in the current version of Form Wizard Pro that I'm aware of, you have not provided any steps that produce the problem for me. It does not throw any errors on our demo site.

Best,

Joe

9/23/2013 2:20:25 PM
Gravatar
Total Posts 68

Re: Form Wizard Pro Exception: Failed to load viewstate.

Nothing unique about the steps ... with IE 10 opened the page containing the form, entered fields and submitted. Never switched browsers or skins. The form is a two column form with associated CSS and option to flatten pages as groups. For now back on the previous version but later will try loading the form on the demo site.

9/23/2013 2:36:03 PM
Gravatar
Total Posts 18439

Re: Form Wizard Pro Exception:

I just tried Form Wizard on the demo site with IE 10 and no errors. I even made sure the form had a choose from a list question since that is the only thing that changed, I added one to the Form Wizard Survey demo and it works fine.

9/23/2013 2:43:34 PM
Gravatar
Total Posts 68

Re: Form Wizard Pro Exception:

Hi Joe,

I just reproduced the exception on the demo site.

Look for the FW Test page under More.

 

-Bill

9/23/2013 2:50:19 PM
Gravatar
Total Posts 18439

Re: Form Wizard Pro Exception:

Thanks, I'll download the form definition and investigate.

 

9/24/2013 11:56:21 AM
Gravatar
Total Posts 18439

Re: Form Wizard Pro Exception:

Hi,

I was able to reproduce the problem using your form definition. I've just uploaded a patched version of Form Wizard Pro 2.6.1.2 that should fix this problem. Can you download it again and confirm the fix? The only file in the package that changed since the initial release of 2.6.1.2 is the sts.FormWizard.Web.UI.dll

​Thanks,

Joe

9/24/2013 1:59:07 PM
Gravatar
Total Posts 68

Re: Form Wizard Pro Exception:

Hi, Joe,

Confirmed the problem is resolved. Thanks.

9/26/2013 6:13:17 AM
Gravatar
Total Posts 68

Re: Form Wizard Pro Exception: Failed to load viewstate.

Hi Joe,

Sorry spoke too soon ... the exception is resolved however the behavior of the choose from a list type has changed such that the first item in the list is always selected rather than displaying "Please select...". This causes unanswered questions to appear in notifications.

Dropping back to the previous version restores the usual behavior.

-Bill

9/26/2013 10:21:09 AM
Gravatar
Total Posts 18439

Re: Form Wizard Pro Exception:

Hi Bill,

Sorry I missed that, this one is now also patched in the Form Wizard Pro 2.6.1.2 download. Again the only changed file in the package is sts.FormWizard.Web.UI.dll

​Thanks,

Joe

You must sign in to post in the forums. This thread is closed to new posts.