update log4net dll

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
6/28/2012 3:11:34 AM
Gravatar
Total Posts 88

update log4net dll

Hi,

It's possible to update log4net dll to the new release?

thanks

6/29/2012 2:05:05 PM
Gravatar
Total Posts 18439

Re: update log4net dll

Its possible but it is also likely to break compatibility with existing features that others have developed, it will require all features that reference it to reference the new version and the be re-compiled.

Why exactly do you want the latest version? Are you having problems with the current version? I've never had any problems with it myself and there is potential for a lot of support issues coming up if we do that because it may break other developers code.

12/4/2012 10:30:34 AM
Gravatar
Total Posts 18439

Re: update log4net dll

fyi, mojoPortal 2.3.9.4 has been updated to use the latest log4net

Best,

Joe

12/5/2012 12:55:52 PM
Gravatar
Total Posts 68

Re: update log4net dll

Hi Joe,

Related to this the recent update to Event Calendar Pro apparently references the updated log4net although the version history page says it requires 2.3.9.3. You'll take exceptions when updating a calendar event.

"3.4.1.0 Released 2012-11-28 fixed bug where when allowing anonymous ticket purchases with PayPal, if the user clicked the link going back to the site they would see the Access Denied message since order detail is not allowed for anonymous orders. Requires mojoPortal 2.3.9.3 or higher.

-Bill

12/5/2012 1:03:59 PM
Gravatar
Total Posts 18439

Re: update log4net dll

Thanks Bill,

I will update that information to say it requires mojoPortal 2.3.9.4, sorry for any inconvenience.

Sorry for the inconvenience. I was worried about breaking other people's custom code by updating to the new log4net because I thought it might require everyone to re-compile their custom features against the new log4net dll, but I was able to prevent that problem by adding this in the Web.config in 2.3.9.4:

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
 
      <dependentAssembly>
        <assemblyIdentity name="log4net"
            publicKeyToken="1b44e1d426115821" />
        <bindingRedirect oldVersion="1.2.10.0"
        newVersion="1.2.11.0" />
      </dependentAssembly>
      
      
    </assemblyBinding>
  </runtime>

though it still would be best for anyone using custom code that also uses log4net to re-reference it and re-compile when they get a chance.

Best,

Joe

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