OrleansContrib / OrleansTestKit

Unit Test Toolkit for Microsoft Orleans
http://dotnet.github.io/orleans
MIT License
78 stars 43 forks source link

Orleans 8.1: The type initializer for 'Orleans.TestKit.Reminders.RuntimeContextManager' threw an exception. #160

Closed jkonecki closed 5 months ago

jkonecki commented 5 months ago

I receive the following error after upgrading to Orleans 8.1

Message: 

System.TypeInitializationException : The type initializer for 'Orleans.TestKit.Reminders.RuntimeContextManager' threw an exception.
  ----> System.NullReferenceException : Object reference not set to an instance of an object.

Stack Trace: 

RuntimeContextManager.get_Instance()
RuntimeContextScope.ctor(IGrainContext context)
RuntimeContextManager.StartExecutionContext(IGrainContext context)
TestGrainCreator.CreateGrainInstance[T](IGrainContext context)
TestKitSilo.CreateGrainAsync[T](IdSpan identity, CancellationToken cancellation)

I'm working on a fix.

Laurianti commented 5 months ago

I cannot see OrleansTestKit 8.1 on Nuget: https://www.nuget.org/packages/OrleansTestKit

Actually, the 8.0 is the latest version.

jkonecki commented 5 months ago

I tried to publish the package, but the Action failed as the Nugget key has expired. I messaged the maintainers (I don't have access to Nuget account) but they haven't fixed the issue yet.

If you're desperate, you can download the package itself from the GitHub release page and reference it locally. I use own NuGet artifact feed in Azure DevOps, so I can simply upload the package.

On Mon, 22 Apr 2024, 08:14 Federico Laurianti, @.***> wrote:

I cannot see OrleansTestKit 8.1 on Nuget: https://www.nuget.org/packages/OrleansTestKit

Actually, the 8.0 is the latest version.

— Reply to this email directly, view it on GitHub https://github.com/OrleansContrib/OrleansTestKit/issues/160#issuecomment-2068652260, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANRNDYPK3BNQ5KMVWPDVLDY6S2DZAVCNFSM6AAAAABGN4LYDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRYGY2TEMRWGA . You are receiving this because you modified the open/close state.Message ID: @.***>