Mobile Kit Pro 2.1 – Log4net – Could not load 1.2.11.0 Exception Error

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
12/16/2014 12:51:51 PM
Gravatar
Total Posts 23

Mobile Kit Pro 2.1 – Log4net – Could not load 1.2.11.0 Exception Error

Hi Joe

We are in the process of carrying out upgrades to 2.4.0.7.  As part of this I have created a clean mojoPortal 2.4.0.7 installation on a Windows Web Server 2008 R2 SP1 (.Net 4.5.1, MSSQL Express 2012 SP2).  This also has Site Membership Pro 1.0.1.7, Form Wizard Pro 2.6.1.9 and Event Calendar Pro 3.4.2.0 installed.

If I change the mobile skin for the site away from the site default (currently set to art42-wallpaper) to i7MEDIA-mobile1 and then view the site on a mobile device, I receive the server error below “System.IO.FileLoadException: Could not load file or assembly 'log4net, Version=1.2.11.0”.

The log4net.dll in the site bin folder is showing version 1.2.13.0

Do you have any thoughts on how I can resolve this?  (I am also experiencing this problem on another server with the same config but using our own skins. I cannot reproduce the problem on the demo site though.)

Thanks for your help on this.

Best regards

Neil

 

Error Log Extract:

2014-12-16 17:46:12,740 ERROR 192.168.2.103 - en-GB - /Default.aspx - mojoPortal.Web.Global -  Referrer(http://mojo2407/Error.htm?aspxerrorpath=/Default.aspx) useragent Mozilla/5.0 (Windows Phone 8.1; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 925; Vodafone) like Gecko
System.IO.FileLoadException: Could not load file or assembly 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=1b44e1d426115821'
   at sts.MobileKit.Web.MobileMenu.BuildTemplate()
   at sts.MobileKit.Web.MobileMenu.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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

12/16/2014 12:59:42 PM
Gravatar
Total Posts 18444

Re: Mobile Kit Pro 2.1 – Log4net – Could not load 1.2.11.0 Exception Error

Hi Neil,

I've just uploaded version 2.2 of Mobile Kit which should fix this. Only the dll file has changed, it has been re-compiled against the newer version of log4net that is included with mojoPortal.

Best,

Joe

12/16/2014 3:30:27 PM
Gravatar
Total Posts 18444

Re: Mobile Kit Pro 2.1 – Log4net – Could not load 1.2.11.0 Exception Error

Hi Neil,

In follow up, you may want to hold off on the upgrade for production for a few days. Some recent problems with the newer version of AjaxControlToolkit have surfaced and it seems that the only way to fix it is going to be to go back to the version we were using before this release. So I will be making another release of mojoPortal, Event Calendar Pro, Form Wizard Pro, and Web Invoice Pro within the next few days. Since those all use ajaxcontroltoolkit, they all need to use the same version so I will have to update them all at the same time.

Best Regards,

Joe

12/17/2014 5:15:05 AM
Gravatar
Total Posts 23

Re: Mobile Kit Pro 2.1 – Log4net – Could not load 1.2.11.0 Exception Error

Hi Joe

Thanks as ever for your responsiveness and the heads up on the AjaxControlToolkit issue.

No worries - we'll wait for the new versions and will hold off our production upgrades until after the holidays.

Best regards

Neil

5/8/2015 4:47:39 PM
Gravatar
Total Posts 18

Re: Mobile Kit Pro 2.1 – Log4net – Could not load 1.2.11.0 Exception Error

Hi there,

 

Can anyone offer an explaination/fix as I just installed 2.4.0.9 and everything appeared ok till I sparked up my mobile and got the following:

2015-05-08 13:36:48,129 ERROR - en-GB - /Default.aspx - mojoPortal.Web.Global - useragent Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; 909) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537 
System.IO.FileLoadException: Could not load file or assembly 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=1b44e1d426115821'
   at sts.MobileKit.Web.MobileMenu.BuildTemplate()
   at sts.MobileKit.Web.MobileMenu.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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

5/8/2015 4:54:28 PM
Gravatar
Total Posts 18444

Re: Mobile Kit Pro 2.1 – Log4net – Could not load 1.2.11.0 Exception Error

you need to install the newer version of Mobile Kit Pro. click "My Account" at the top of the page, then click "Order History", you can download the latest version from there.

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