GithubHelp home page GithubHelp logo

Comments (8)

nelittle avatar nelittle commented on June 24, 2024

here is the full stack trace:
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()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Dataflow.Tests.AvailableScheduleBlockFlowTests.d__1.MoveNext() in C:\Projects\AdvancedHealth\skedge.service\Tests\Dataflow.Tests\AvailableScheduleBlockFlowTests.cs:line 28
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.b__4(Object state)
at NUnit.Framework.AsyncSynchronizationContext.AsyncOperation.Invoke()
at NUnit.Framework.AsyncSynchronizationContext.AsyncOperationQueue.InvokePendingOperations()
at NUnit.Framework.AsyncSynchronizationContext.AsyncOperationQueue.InvokeAll()
at NUnit.Framework.AsyncInvocationRegion.AsyncVoidInvocationRegion.WaitForPendingOperationsToComplete(Object invocationResult)
at NUnit.Framework.AsyncInvocationRegion.AsyncVoidInvocationRegion.WaitForPendingOperationsToComplete(Object invocationResult)
at NUnit.Core.NUnitAsyncTestMethod.RunTestMethod()
--TypeLoadException
at Gridsum.DataflowEx.LogHelper..cctor()

from dataflowex.

karldodd avatar karldodd commented on June 24, 2024

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+?

from dataflowex.

hangy avatar hangy commented on June 24, 2024

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?

from dataflowex.

nelittle avatar nelittle commented on June 24, 2024

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.

from dataflowex.

karldodd avatar karldodd commented on June 24, 2024

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.

from dataflowex.

stristan avatar stristan commented on June 24, 2024

I'm also have an issues with Common.Logging. So wait for the new version. Can you update a status?

from dataflowex.

karldodd avatar karldodd commented on June 24, 2024

@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,

from dataflowex.

karldodd avatar karldodd commented on June 24, 2024

DataflowEx 2.0.0 with Common.Logging 3.4 was released. So close this issue.

from dataflowex.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.