Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi umbracians,
I've recently tried to upgrade my 7.5.10 site to 7.6.1
When launching the site after copying new files and merging configs, i now get log4net errors.
The file or the assembly 'log4net, Version = 1.2.11.0, Culture = neutral, PublicKeyToken = null' or one of its dependencies could not be loaded
i says in the docs there are breaking changes to log4net, so no surprise there. But what are the correct steps to make to get it to work?
What I did:
Is this the correct way of doing the upgrade?
best regards
Hi Hundebol
You need to merge web.config with your local, there are few changes, not only new log4net assembly binding. Try to use WinMerge for merging configs.
Thanks,
Alex
Hi Alex,
Of course i have merged the other changes as well :)
This is what is shown in the 7.6.1 web.config
<dependentAssembly> <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-2.0.8.0" newVersion="2.0.8.0"/> </dependentAssembly>
There is no such thing in my current web.config
It seems someone tried this before. And found som kind of fix.
https://our.umbraco.org/forum/developers/extending-umbraco/45996-log4net-public-token-issues-could-not-load-file-or-assembly
Worked for me!
Well - it worked momentarily. I keep getting errors and in the end the Application Pool stops. So not good.
Anyone got another fix?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Upgrading to umbraco 7.6.1 shows log4net error
Hi umbracians,
I've recently tried to upgrade my 7.5.10 site to 7.6.1
When launching the site after copying new files and merging configs, i now get log4net errors.
i says in the docs there are breaking changes to log4net, so no surprise there. But what are the correct steps to make to get it to work?
What I did:
Is this the correct way of doing the upgrade?
best regards
Hi Hundebol
You need to merge web.config with your local, there are few changes, not only new log4net assembly binding. Try to use WinMerge for merging configs.
Thanks,
Alex
Hi Alex,
Of course i have merged the other changes as well :)
This is what is shown in the 7.6.1 web.config
There is no such thing in my current web.config
It seems someone tried this before. And found som kind of fix.
https://our.umbraco.org/forum/developers/extending-umbraco/45996-log4net-public-token-issues-could-not-load-file-or-assembly
Worked for me!
Well - it worked momentarily. I keep getting errors and in the end the Application Pool stops. So not good.
Anyone got another fix?
is working on a reply...