Form Wizard Pro / Event Calendar Pro errors with .NET 4.0

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.
6/16/2010 12:38:29 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Form Wizard Pro / Event Calendar Pro errors with .NET 4.0

Hi Joe, I've completed our development upgrade to MP 2.3.4.4 running under IIS 7 and .NET 4.0. I've identified a problem with Form Wizard Pro 0.0.1.7 and Event Calendar Pro 0.0.2.8 (both installed from the dotnet40\wwwroot folder, and using the MySQL data layer). When we try to edit a form, or add an event, we receive a server error, and the below error text in the log. Any help would be greatly appreciated!

2010-06-16 10:14:37,240 ERROR mojoPortal.Web.Global - 10.1.102.172-en-US - /FormWizard/FormEdit.aspx?mid=121&pageid=125
System.IO.FileLoadException: Could not load file or assembly 'AjaxControlToolkit, Version=3.0.20820.16598, 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)
File name: 'AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e'
at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Reflection.RtFieldInfo.get_FieldType()
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder)
. . .

Thanks,

Jamie

6/16/2010 12:47:49 PM
Gravatar
Total Posts 18439

Re: Form Wizard Pro / Event Calendar Pro errors with .NET 4.0

Hi Jamie,

It is because you are running a newer build of mojoPortal from the repository rather than the official 2.3.4.4 release.

After the 2.3.4.4 release I updated to the newer version of AjaxControlToolkit in the repository. So your mojoPortal is compiled against the new version but the add on product releases are still compiled against the old version which is the version that shipped with mojoPortal 2.3.4.4.

I'm on the verge of releasing mojoPortal 2.3.4.5 along with updates for Form Wizard Pro and Event Calendar Pro that will use the newer version of the AjaxControlToolkit, so I will have a solution for you in the next day or so but unfortunately don't have an instant solution.

Best,

Joe

6/16/2010 12:56:36 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Form Wizard Pro / Event Calendar Pro errors with .NET 4.0

Ah, that makes sense, thanks Joe. No rush on this one since we're still in development. Such are the hazards of working from the source repository! smiley

Jamie

8/10/2010 2:21:39 PM
Gravatar
Total Posts 10

Re: Form Wizard Pro / Event Calendar Pro errors with .NET 4.0

I'm running into the same issue with stable MP 2.3.4.8 and ECP 0.0.3.1.  Did I bork something with the upgrade?  Here's the output from the error log:

2010-08-10 15:17:22,798 ERROR mojoPortal.Web.Global - xxx.xxx.xxx.xxx-en-US - /Events/EditEvent.aspx?mid=208&pageid=0
System.IO.FileLoadException: Could not load file or assembly 'AjaxControlToolkit, Version=3.0.20820.16598, 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)
File name: 'AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e'
at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Signature..ctor(RuntimeFieldHandle fieldHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Reflection.RtFieldInfo.get_FieldType()
at System.Web.UI.Util.GetNonPrivateFieldType(Type classType, String fieldName)
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder)
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers()
at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree()
at System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath)
at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder)
at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 

8/10/2010 2:27:28 PM
Gravatar
Total Posts 18439

Re: Form Wizard Pro / Event Calendar Pro errors with .NET 4.0

The products both have separate folders in their packages for .NET 3.5 and 4.0 files, make sure you used the 4.0 files and make sure you are using the 4.0 package for mojoportal 2.3.4.8

Hope it helps,

Joe

8/10/2010 2:29:49 PM
Gravatar
Total Posts 18439

Re: Form Wizard Pro / Event Calendar Pro errors with .NET 4.0

Also make sure you use the new Web.config included with mojoPortal, don't try to keep an old one.

8/10/2010 2:34:57 PM
Gravatar
Total Posts 10

Re: Form Wizard Pro / Event Calendar Pro errors with .NET 4.0

Thanks Joe!

This is what I get for keeping every single version of MP and ECP around.  I extracted the 0.0.3.1 archive but opened and install a prior version.

All I needed was a good smack with a clue-by-four.

8/10/2010 3:47:57 PM
Gravatar
Total Posts 10

Re: Form Wizard Pro / Event Calendar Pro errors with .NET 4.0

SO, I noticed a weird thing when downloading 2.3.4.8

the zip file marked net40 contains net35 configs and vice versa.  I've tried several combinations, and now now matter how I bake it, I get a 500.19 error, saying that

Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x80070032
Config Error The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration
Config File \\?\C:\inetpub\wwwroot\biophysics\web.config
Requested URL http://biop.lsa.umich.edu:80/
Physical Path
Logon Method Not yet determined
Logon User Not yet determined

Also, using the included web.config, and changing out the net4 net40, etc web config files produces the same result.

here's the section in question:

<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true"/>
<webServices>
<authenticationService enabled="true" requireSSL="false"/>
<roleService enabled="true"/>
</webServices>
</scripting>
</system.web.extensions>

Thanks for your help again.

8/10/2010 4:11:45 PM
Gravatar
Total Posts 18439

Re: Form Wizard Pro / Event Calendar Pro errors with .NET 4.0

the Web.config in that package is for 4.0 you should not use a different one.

Make sure your application pool is using a 4.0 integrated application pool

Hope it helps,

Joe

8/10/2010 4:59:22 PM
Gravatar
Total Posts 10

Re: Form Wizard Pro / Event Calendar Pro errors with .NET 4.0

Okay, I've gotten it upgraded more or less correctly at this point with your help.  However, now I'm getting the same-ish error for ECP:

System.IO.FileLoadException: Could not load file or assembly 'AjaxControlToolkit, Version=3.5.40412.0, 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)
File name: 'AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e'
at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)

I've used the files from the 4.0 folder in ECP 0.0.3.1 But I'm still getting this.  I know I'm doing something completely idiotic at this point.

One last time?  I'm gonna have to buy you a six-pack.

8/10/2010 8:07:56 PM
Gravatar
Total Posts 10

Re: Form Wizard Pro / Event Calendar Pro errors with .NET 4.0

 I don't know what I did wrong.  Sometimes it's just easier to Nuke and Pave.  I downloaded fresh copies of mp and ecp, copied the Data folder over and it just started working.  Thanks for making it easy to fix.  I rarely have to admin the backend of mojoPortal and each time I get myself in a pickle, I can always get back to where I need to be.

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