Unable to cast object of type 'NServiceBus.Persistence.RavenDB.RavenDBSynchronizedStorageSession' to type 'NServiceBus.InMemorySynchronizedStorageSession.
Yepp, I do have sagas running in the endpoint handling one or more messages. And yes, the issue seems to occur when two different (note that I have only tested with RavenDb and InMemory) persistence are set for subscription and saga.
I have inherited the codebase, so I’m not sure why it was done this way, but my initial thought was that subscriptions, sagas and timeouts should kept within the same persistence, but it got me wondering since it worked in v5.