Cannot edit or create forms anymore with Form Wizard Pro

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.
12/15/2009 2:16:05 PM
Gravatar
Total Posts 14

Cannot edit or create forms anymore with Form Wizard Pro

Windows SBS 2005
SQL Server
Version2.3.1.0

Cannot edit forms anymore using Form Wizard Pro

Did not use the form editor some time. But now get the following error trying to create a new form.

Event log says:
Exception information:

Exception type: HttpParseException

Exception message: Could not load file or assembly 'AjaxControlToolkit, Version=1.0.20229.25725, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Anybody any suggestion?

12/16/2009 4:00:11 AM
Nux
Gravatar
Total Posts 183

Re: Cannot edit or create forms anymore with Form Wizard Pro

Hey

it seems that you have an old version of the AjaxControlToolkit.dll, which would be very strange if you have installed it on the proper way.
Check the AjaxControlToolkit.dll in the bin folder. Is there one? If so, which version (right click on the dll, properties -> version)?
It should be of version "3.0.20820.16598"

Greetings
Stef

12/16/2009 5:53:06 AM
Gravatar
Total Posts 14

Re: Cannot edit or create forms anymore with Form Wizard Pro

you expected the version installed is correct: 3.0.20820.16598

There are more website present on the same server. Could it be that there are older version of the toolkit which interfers with Mojoportal?

12/16/2009 5:57:37 AM
Gravatar
Total Posts 18439

Re: Cannot edit or create forms anymore with Form Wizard Pro

Yes, that is likely the problem. If someone installed the older toolkit using an installer then it was installed in the GAC (Global Assembly Cache) and .NET will use that in preference to the one in the /bin folder so it broke mojoPortal when this older version was installed on the server.

The way to solve it would be to put the old version of the dll in the /bin folder in apps that need the old version, then uninstall it from the GAC so that mojoPortal can use the one in it's /bin folder

Hope it helps,

Joe

12/16/2009 6:02:34 AM
Nux
Gravatar
Total Posts 183

Re: Cannot edit or create forms anymore with Form Wizard Pro

Hey,

I though that the application takes first the dll from the bin and if it isn't there, it takes the dll from the GAC and not the the other way.

Do you have that error only on a page with the form wizard on? Or on every page?

Stef

12/16/2009 6:08:16 AM
Gravatar
Total Posts 18439

Re: Cannot edit or create forms anymore with Form Wizard Pro

I know recently I saw someone give a demo of an MVC app, they had the newer version of MVC in the bin and an older one in the GAC and it used the one from the GAC, he had to uninstall it to get his demo working.

12/16/2009 8:08:12 AM
Nux
Gravatar
Total Posts 183

Re: Cannot edit or create forms anymore with Form Wizard Pro

Ok, I did some reseach:

To use the ajaxcontroltoolkit.dll, you just put it in your bin folder of your application. But... the dll is strongly typed, and if you have installed it in the GAC, the application checks first the GAC version and if it can't find it there, it checks the BIN folder. But if there is a version in GAC, you get this kind of error.

So, for your problem: is there a site on your server that needs ajaxcontroltoolkit? If so, install the new version in the GAC so mojoportal works (and know that you will have to check this for every new version of the toolkit). If not, uninstalled it from the GAC and your site will work (i guess Cool)

Gr
Stef

12/16/2009 8:22:06 AM
Gravatar
Total Posts 14

Re: Cannot edit or create forms anymore with Form Wizard Pro

I check for older version in the Global Assembly Cache folder but no AjaxControlToolkit.dll was present there. Only in bin directories of the different web sites.

12/17/2009 3:54:02 AM
Gravatar
Total Posts 14

Re: Cannot edit or create forms anymore with Form Wizard Pro

Why is MojoPortal trying to load version 1.0?

Could not load file or assembly 'AjaxControlToolkit, Version=1.0.20229.25725

If search the disk but no version 1.0 is found anywhere. Is this version required?

I have copied the dll from the Mojoportal/bin  to the GAC folder but no difference. Still not able to edit forms

12/17/2009 4:19:55 AM
Gravatar
Total Posts 18439

Re: Cannot edit or create forms anymore with Form Wizard Pro

All I can guess is you installed originally when both mojoPortal and Form Wizard Pro were using the 1.0 version of ajaxtoolkit, and then you upgraded mojoPortal to a version which uses the newer ajaxtoolkit but did not upgrade Form Wizard Pro at the same time, so the older Form Wizard Pro may have a dependency on the 1.0 version but the file has been replaced by the newer version included with mojoPortal.

Best solution is to upgrade both mojoPortal and Form Wizard Pro to the latest versions available now, which is version 2.3.3.0 of mojoPortal and 0.0.1.0 of Form Wizard Pro. 

Since you have not upgraded in a while you may want to read some of the posts in the blog about release notes for versions you have skipped to find out about new features and config options.

Hope it helps,

Joe

ps we are within days of making another new and even better release of mojoPortal

12/17/2009 4:31:30 AM
Gravatar
Total Posts 14

Re: Cannot edit or create forms anymore with Form Wizard Pro

Thanks for the advice. Will wait for this ever better new version

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