How do I fix such errors till fix is released? Currently getting
System.TypeInitializationException: The type initializer for ‘EventStore.Core.Messaging.MessageHierarchy’ threw an exception. —> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at EventStore.Core.Messaging.MessageHierarchy.<.cctor>b__1(Assembly assembly)
at System.Linq.Enumerable.d__313.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext()
at EventStore.Core.Messaging.MessageHierarchy…cctor()
— End of inner exception stack trace —
at EventStore.Core.Bus.InMemoryBus…ctor(String name, Boolean watchSlowMsg, Nullable`1 slowMsgThreshold)
at EventStore.Core.ClusterVNode…ctor(TFChunkDb db, ClusterVNodeSettings vNodeSettings, IGossipSeedSource gossipSeedSource, InfoController infoController, ISubsystem[] subsystems)
at EventStore.ClientAPI.Embedded.EmbeddedVNodeBuilder.Build()
at WB.Tests.Integration.EventStore.with_in_memory_event_store.<.ctor>b__0() in F:\Tests\WB.Tests.Integration\EventStore\with_in_memory_event_store.cs:line 26
``
When initializing event store with the following code:
var emptyEndpoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 0);
node = EmbeddedVNodeBuilder.AsSingleNode()
.RunInMemory()
.WithInternalHttpOn(emptyEndpoint)
.WithInternalTcpOn(emptyEndpoint)
.WithExternalHttpOn(emptyEndpoint)
.WithExternalTcpOn(emptyEndpoint)
.Build();
var startedEvent = new ManualResetEventSlim(false);
node.MainBus.Subscribe(
new AdHocHandler<UserManagementMessage.UserManagementServiceInitialized>(m => startedEvent.Set()));
node.Start();
``
Thanks.