Closed rekosko closed 8 years ago
It's been a year or more since I've done .NET development but I'm going to go with my recollection and say that you can't load two versions of the same assembly in the same AppDomain.
https://msdn.microsoft.com/en-us/library/dd153782.aspx#avoid_loading_multiple_versions
Thank you for answer. After carefully reading the logs again this seems to be the case but unfortunately I have no bloody idea how I can solve that... probably create some another AppDomain and then pair them together or something like that but I don't have experience in that...:/ If nobody can't give me any other tips then I think this question is safe to be closed.
Hi @rekosko,if the assembly binding redirect isn't working I'm not really sure what to suggest here. Sorry!
Hello,
I'm struggling with log4net for quite some time. I'm using unsigned log4net.1.2.11.0.dll version in my Umbraco installation. Due to different log4net version issues in Umbraco I've set up assembly binding in my project like this:
My project csproj:
and my log4.net config is:
I've also created my custom
Logger
in class library which also uses log4net newest version and I'm referencing this library in my web project. It looks similar to this:This logger is then registered using Autofac in my project:
The app is building and starting without any visible errors but in Debug window I get:
My knowledge about assemblies and making them all work together is rather... eh... not existing so I'm asking for your help. What I'm doing wrong? Could you please help me. Thanks.
Edit: this is what I get in Output window:
This:
and: