Form wizard pro

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
7/25/2014 6:34:06 AM
Gravatar
Total Posts 118

Form wizard pro - error on second question


Running version 2.4.0.0 MSSQL
 

Hi, I've just installed Form Wizard Pro, I seem to be able to add the first question okay (long pause when clicking on submit) but then I get forwarded to the error page when trying to add a second question. Clicking 'back' in my browser takes me to the form with one question on. 

7/25/2014 7:55:25 AM
Gravatar
Total Posts 18439

Re: Form wizard pro

you did not mention the version of Form Wizard Pro. The most common issue is a version issue so upgrading to the latest of mojoPortal and Form Wizard is usually the best idea to make sure you have compatible versions.

In any case, the first step in troubleshooting is to find out what error is happening.

7/25/2014 8:00:34 AM
Gravatar
Total Posts 118

Re: Form wizard pro

It's form wizard pro version 2.6.1.7

I'll take a look at the error now.

7/25/2014 8:04:02 AM
Gravatar
Total Posts 118

Re: Form wizard pro

2014-07-25 14:03:23,871 ERROR 10.171.75.166 - en-US - /FormWizard/FormEdit.aspx?mid=7562&pageid=4410 - mojoPortal.Web.Global -  Referrer(http://themanor.xwalsall.nhs.uk/testskin.aspx) useragent Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 
System.TypeLoadException: Could not load type 'mojoPortal.Web.UI.EmailValidator' from assembly 'mojoPortal.Web, Version=1.0.5065.26838, Culture=neutral, PublicKeyToken=null'.
   at sts.FormWizard.Web.UI.EmailQuestion.SetupControls()
   at System.Web.UI.Control.EnsureChildControls()
   at System.Web.UI.WebControls.CompositeControl.DataBind()
   at System.Web.UI.Control.DataBindChildren()
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
   at System.Web.UI.Control.DataBindChildren()
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
   at System.Web.UI.Control.DataBindChildren()
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
   at System.Web.UI.Control.DataBindChildren()
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
   at AjaxControlToolkit.ReorderList.CreateItem(Int32 index, Boolean dataBind, Object dataItem, ListItemType itemType, Boolean hasDragHandle)
   at AjaxControlToolkit.ReorderList.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
   at AjaxControlToolkit.ReorderList.PerformDataBinding(IEnumerable data)
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
   at sts.FormWizard.Web.UI.WebFormControl.BindGrid()
   at sts.FormWizard.Web.UI.WebFormControl.PopulateControls()
   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.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

7/25/2014 8:09:41 AM
Gravatar
Total Posts 18439

Re: Form wizard pro

You need to upgrade mojoPortal to fix that. As is indicated on the product page for Form Wizard Pro, at version 2.6.1.6 it required mojoPortal version 2.4.0.3. or higher, you are using 2.6.1.7 with mojoPortal 2.4.0.0 which is not compatible.

As you see the error is about the EmailValidator which was added in mojoPortal 2.4.0.3 and does not exist in 2.4.0.0 so this error happens.

7/25/2014 8:12:20 AM
Gravatar
Total Posts 18439

Re: Form wizard pro

I suggest either upgrade to mojoPortal 2.4.0.3, or if you have .NET 4.5 then upgrade to the latest of both mojoPortal and Form Wizard Pro.

7/25/2014 8:18:45 AM
Gravatar
Total Posts 118

Re: Form wizard pro

That's great, thanks a lot for your time. 

8/28/2014 8:12:18 AM
Gravatar
Total Posts 118

Re: Form wizard pro

Hi, I've since updated to 2.4.0.4 MSSQL and Form wizard pro 2.6.1.8.

It seemed to work okay and I managed to get a couple of forms created, however, upon touching the web.config (doing some skin changes). Each page that has a form is unavailable with the following error. I've checked the log, but nothing in there seems relevant.

Server Error in '/' Application.
--------------------------------------------------------------------------------

The requested script resource 'Common.Common.js' requires version 'AjaxControlToolkit, Version=4.1.7.123, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' of the ASP.NET AJAX Framework. To use this resource, make sure that the application references version 'AjaxControlToolkit, Version=4.1.7.123, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e'. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: The requested script resource 'Common.Common.js' requires version 'AjaxControlToolkit, Version=4.1.7.123, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' of the ASP.NET AJAX Framework. To use this resource, make sure that the application references version 'AjaxControlToolkit, Version=4.1.7.123, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e'.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[InvalidOperationException: The requested script resource 'Common.Common.js' requires version 'AjaxControlToolkit, Version=4.1.7.123, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' of the ASP.NET AJAX Framework. To use this resource, make sure that the application references version 'AjaxControlToolkit, Version=4.1.7.123, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e'.]
   System.Web.UI.CompositeScriptReference.GetUrl(ScriptManager scriptManager, Boolean zip) +1190
   System.Web.UI.ScriptManager.RegisterUniqueScripts(List`1 uniqueScripts) +350
   System.Web.UI.ScriptManager.RegisterScripts() +692
   System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +281
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4543

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1022 

8/28/2014 9:18:46 AM
Gravatar
Total Posts 18439

Re: Form wizard pro

did you deploy the .NET 4.5 version of Form Wizard Pro or the .NET 4 version?

do you know if .NET 4.5 is installed on the server?

if you deployed the .NET 4.5 version, for a test you might try deploy the dlls from the bin folder of the 4.0 version and see if that solves it, if not you can re-deploy the 4.5 dlls

8/28/2014 9:23:06 AM
Gravatar
Total Posts 118

Re: Form wizard pro

I deployed the .net 4.0 files, as I'm running the .net 4.0 version of mojoportal. When I upgraded, I also had to apply the subsequent files as I get .net errors. 

I've since noticed that this isn't an issue with the form. Each time I touch the web.config file, I have to return to the first webiste before I can access any of my subsequent sites (I have an 8 site multi installation)

8/28/2014 9:37:48 AM
Gravatar
Total Posts 18439

Re: Form wizard pro

can you try adding this in Web.config inside the <pages><tagMapping>

<add tagType="System.Web.UI.ScriptManager" mappedTagType="AjaxControlToolkit.ToolkitScriptManager" />

and see if that solves it or not?

8/28/2014 10:11:33 AM
Gravatar
Total Posts 118

Re: Form wizard pro

I added 


<add tagType="System.Web.UI.ScriptManager" mappedTagType="AjaxControlToolkit.ToolkitScriptManager" />

right before </tagMapping> and the whole site was unavailable with the following error.

 

Request timed out.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request timed out.

Source Error:
 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:
 

[HttpException (0x80004005): Request timed out.]


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1022 

8/28/2014 10:21:58 AM
Gravatar
Total Posts 18439

Re: Form wizard pro

a request timeout can happen for a lot of reasons after config changes, I would try again and refresh if it times out to give it another chance in case it just timed out waiting for jit compilation to finish.

8/28/2014 10:57:01 AM
Gravatar
Total Posts 118

Re: Form wizard pro

Just noticed something else quite strange. My Admin account's root for uploading files is now the media folder? so I can't access anything before it from the front end. Is this a setting in web.config?

8/28/2014 11:02:11 AM
Gravatar
Total Posts 118

Re: Form wizard pro

Tried adding that code to the web.config file again, it refreshed the homepage this time, but when I tried to access a page with the form on, it errored.

8/28/2014 11:03:37 AM
Gravatar
Total Posts 18439

Re: Form wizard pro

yes the default for that changed, you can change it back:

<add key="ForceAdminsToUseMediaFolder" value="false" />

but you should know why we changed it before you decide if you want to do that.

when we implemented drag and drop for images with automatic upload of the images to the server, it will put those files in the root level folder that the user has access to, for non admin users this is the media folder, but for admins if you drop images it will go in /Data/Sites/[SiteID] folder

so we changed by default to make admins also use media folder, but you can choose not to. If you upload the old fashioned way you can choose where to put the file but if you just drop them into content they will go in your root folder that you can access.

8/28/2014 11:06:56 AM
Gravatar
Total Posts 18439

Re: Form wizard pro

"Tried adding that code to the web.config file again, it refreshed the homepage this time, but when I tried to access a page with the form on, it errored."

ok, better back that out then.

I'm starting to think that the server must have a different version of ajaxcontroltoolkit installed in the GAC and somehow it is using that instead of the one in in the bin folder which is the correct version.

I really wish you could move this installation to .NET 4.5

8/29/2014 2:38:52 AM
Gravatar
Total Posts 118

Re: Form wizard pro

Can I check in the folder to see which version of AJAX I have I'll try to get upgraded to .net 4.5 but will take a bit of time, will that solve it?

8/29/2014 6:48:23 AM
Gravatar
Total Posts 18439

Re: Form wizard pro

The thing is your error says:

"The requested script resource 'Common.Common.js' requires version 'AjaxControlToolkit, Version=4.1.7.123"

and 4.1.7.123 is the version of AjaxControlToolkit.dll that is in your bin folder (or it should be since that is what is in the package)

so the question is how or why is it using a different version, and one theory is that there could be a different version of it in GAC (global assembly cache) on the server and somehow it is using that one instead of the one in the bin folder. This is just a theory about how this error can happen since I am not able to produce the error myself.  You could ask the host to look under Add/Remove Programs to see if it does have AjaxControlToolkit in the GAC on the server.

mojoportal and other features  like Form Wizard Pro do reference version 4.1.7.123 and it does exist in the bin folder, so it should use the one in the bin and it should not produce an error, so I'm just guessing at a scenario that could cause this error. I tried yesterday using the .NET 4 version of the dlls for mojoPortal and Form Wizard and was not able to get this error to happen.

The other thing to consider is whether you are really sure what version of .NET is installed on the server. It is actually not easy to find out without looking in Add/Remove Programs because .NET 4.5 is really an in place upgrade/service pak for .NET 4 and they both use the same version of the CLR. If you look under Administration > System Information in mojoPortal, it is going to say "v4.0.30319" no matter whether it is .NET 4 or .NET 4.5 installed, so don't let that be a basis for thinking it is only .NET 4 installed. .NET 4.5 has been out for 2 years now and it is like a service pak for .NET 4 so there is really no reason not to install 4.5. The .NET 4 package of mojoPortal can run on either 4 or 4.5, but the 4.5 package of mojoportal and add ons are compiled for 4.5, and the most recommended configuration is to use the .NET 4.5 framework and the 4.5 compiled packages of mooPortal and related features.

you might also test whether something about the skin is a factor, ie do you get the same problem if you use a newer skin like art42-wallpaper. for example make sure that the layout.master has ScriptManager

8/29/2014 8:58:19 AM
Gravatar
Total Posts 118

Re: Form wizard pro

Is Mojoportal okay with .net 4.5.2?

8/29/2014 9:22:11 AM
Gravatar
Total Posts 18439

Re: Form wizard pro

yes definitely

9/10/2014 2:48:35 AM
Gravatar
Total Posts 118

Re: Form wizard pro

Hello,

Just to update this thread, upgraded to .net 4.5 and all working. 

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