title: NServiceBus 5 RavenDBPersistence SetDefaultDocumentStore using EmbeddableDocumentStore
body: <p>I am using NServiceBus hosted in my own process along with RavenDB also hosted in the same process using  RavenDB.Embedded.</p>
  
  <p>This combo has worked without any problems when I was using NServiceBus 4.6.5, however I upgraded to NServiceBus 5.0.0 and updated the configuration to use the new configuration api.</p>
  
  <p>Everything builds and I can send messages to an endpoint which are received and a saga instance is constructed.</p>
  
  <p>However, NServiceBus then throws an exception with the message:</p>
  
  <blockquote>
    <p>No saga persister configured. Please configure a saga persister if you want to use the nservicebus saga support</p>
  </blockquote>
  
  <p>I was using the following configuration successfully with NServiceBus 4.6.5:</p>
  
  <pre><code>Configure.With()
           .DefaultBuilder()
           .RavenPersistenceWithStore(DocumentStore)
  </code></pre>
  
  <p>With NServiceBus 5.0.0 I have tried the following configurations without any luck:</p>
  
  <p>1.</p>
  
  <pre><code>configuration.UsePersistence&lt;RavenDBPersistence&gt;()
               .SetDefaultDocumentStore(DocumentStore);
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>configuration.UsePersistence&lt;RavenDBPersistence&gt;()
               .SetDefaultDocumentStore(DocumentStore)
               .UseDocumentStoreForSagas(DocumentStore);
  </code></pre>
  
  <p>3.</p>
  
  <pre><code>configuration.UsePersistence&lt;RavenDBPersistence&gt;()
               .SetDefaultDocumentStore(DocumentStore)
               .UseDocumentStoreForSagas(DocumentStore)
               .UseDocumentStoreForSubscriptions(DocumentStore)
               .UseDocumentStoreForTimeouts(DocumentStore);
  </code></pre>
  
  <p>and all three with and without:</p>
  
  <pre><code>configuration.EnableFeature&lt;RavenDbSagaStorage&gt;();
  </code></pre>
  
  <p>If I use InMemoryPersistence then everything works great.</p>
  
  <p>Has anyone else experienced this issue with RavenDB.Embedded combined with NServiceBus 5.0.0?</p>