-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with newer version of Common.Logging #3
Comments
here is the full stack trace: |
Thanks for reporting the issue @nelittle . The reason behind the issue is a common.logging breaking change: the LogManager class has moved from Common.Logging.Core to Common.Logging, a different assembly. Honestly DataflowEx may not update its common.logging dependency until next major version. So, if downgrading to 2.2 is acceptable in your scenario, this is probably the best way to work around. Do you need any particular feature in common.logging 3.0+? |
Would it make sense to update the NuGet package to explicitly depend on Common.Logging >= 2.2.0 && < 3.0 in order to disallow incompatible upgrades? |
i'm no longer working on this project, but the issue we had is that another package we were using was on a much newer version, hence us having that version already installed, so we ended up having to degrade several component's version of Common.Logging. It seemed to work for us, but if any of those other components had a min version dependency that was higher, i'm not sure what we would have done. |
Recently I am planning to upgrade to Common.Logging 3.x and publish a new version : ) Btw, porting the whole DataflowEx to .NET Core is also on the roadmap. This project will evolve. |
I'm also have an issues with Common.Logging. So wait for the new version. Can you update a status? |
@nelittle @hangy @stristan Hi guys, a brand new version of DataflowEx is out with the help of .Net Core preview 2 ! Please try out the preview release to see if it solves your problem (Common.Logging upgraded to 3.4.0) : https://www.nuget.org/packages/Gridsum.DataflowEx/2.0.0-alpha Related pr is #13 . Cheers, |
DataflowEx 2.0.0 with Common.Logging 3.4 was released. So close this issue. |
I got an error when using a newer version of Common.Logging and Common.Logging.Core System.TypeInitializationException : The type initializer for 'Gridsum.DataflowEx.LogHelper' threw an exception.
----> System.TypeLoadException : Could not load type 'Common.Logging.LogManager' from assembly 'Common.Logging.Core, Version=3.1.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e'.
at Gridsum.DataflowEx.LogHelper.get_Logger()
at Gridsum.DataflowEx.Dataflow.d__18.MoveNext()
i got the same issue using 3.1 and 3.2 of the frameworks.
i was able to get past that issue by revering Common.Logging.Core to 2.2 and updating my app.config.
It looks like they had similar problems with an earlier version: net-commons/common-logging#23
but that should be fixed in 2.2 according to that thread. Not sure what the root problem is here or if maybe a new version of DataflowEx should be published with updated references to the logging frameworks.
The text was updated successfully, but these errors were encountered: