title: RavenDB Errors with NServiceBus 4.0
body: <p>I've downloaded and installed NServiceBus 4.0, but I'm having some difficulty when the bus starts up...</p>
  
  <p>2013-09-18 15:53:40,887 [1] WARN  NServiceBus.Persistence.Raven.RavenUserInstall
      er [(null)] &lt;(null)> - Failed to add user to raven. Processing will continue
      System.MissingMethodException: Method not found: 'Raven.Abstractions.Data.PutRes
      ult Raven.Client.Connection.IDatabaseCommands.Put(System.String, System.Nullable
      `1, Raven.Json.Linq.RavenJObject, Raven.Json.Linq.RavenJObject)'.
         at NServiceBus.Persistence.Raven.RavenUserInstaller.AddUserToDatabase(String
      identity, DocumentStore documentStore)
         at NServiceBus.Persistence.Raven.RavenUserInstaller.Install(String identity)
      in c:\BuildAgent\work\d4de8921a0aabf04\src\NServiceBus.Core\Persistence\Raven\Ra
      venUserInstaller.cs:line 40</p>
  
  <p>also when I try to persist changes to the document store...</p>
  
  <pre><code> public class RavenUnitOfWork: IManageUnitsOfWork
      {
          public IDocumentSession Session { get; set; }
          public void Begin()
          {
  
          }
  
          public void End(Exception ex = null)
          {
              if (ex == null &amp;&amp; Session != null)
              {
                  Console.WriteLine("Saving Changes to DB.");
                   Session.SaveChanges();
              }
          }
      }
  
  produces
  
  
      2013-09-18 15:57:38,007 [13] INFO  NServiceBus.Unicast.Transport.TransportReceiv
      er [(null)] &lt;(null)&gt; - Failed to process message
      System.InvalidOperationException: Url: "/bulk_docs"
  
      System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xx
      xx-xxxx-xxxx-xxxxxxxxxxxx).
         at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failure
      MessageID, Object failureMessageFormatArgument, String failureArgumentName, Exce
      ption innerException)
         at System.Guid.TryParseGuidWithDashes(String guidString, GuidResult&amp; result)
         at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult&amp; result)
         at System.Guid..ctor(String g)
         at Raven.Database.Server.AbstractRequestResponder.GetRequestTransaction(IHttp
      Context context)
         at Raven.Database.Server.Responders.DocumentBatch.Respond(IHttpContext contex
      t)
         at Raven.Database.Server.HttpServer.DispatchRequest(IHttpContext ctx)
         at Raven.Database.Server.HttpServer.HandleActualRequest(IHttpContext ctx)
       ---&gt; System.Net.WebException: The remote server returned an error: (500) Intern
      al Server Error.
         at System.Net.HttpWebRequest.GetResponse()
         at Raven.Client.Connection.HttpJsonRequest.ReadJsonInternal(Func`1 getRespons
      e) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\HttpJsonReque
      st.cs:line 340
         --- End of inner exception stack trace ---
         at NServiceBus.Unicast.Transport.TransportReceiver.ProcessMessage(TransportMe
      ssage message) in c:\BuildAgent\work\d4de8921a0aabf04\src\NServiceBus.Core\Unica
      st\Transport\TransportReceiver.cs:line 357
         at NServiceBus.Unicast.Transport.TransportReceiver.TryProcess(TransportMessag
      e message) in c:\BuildAgent\work\d4de8921a0aabf04\src\NServiceBus.Core\Unicast\T
      ransport\TransportReceiver.cs:line 235
         at NServiceBus.Transports.Msmq.MsmqDequeueStrategy.ProcessMessage(TransportMe
      ssage message) in c:\BuildAgent\work\d4de8921a0aabf04\src\NServiceBus.Core\Trans
      ports\Msmq\MsmqDequeueStrategy.cs:line 262
         at NServiceBus.Transports.Msmq.MsmqDequeueStrategy.Action() in c:\BuildAgent\
      work\d4de8921a0aabf04\src\NServiceBus.Core\Transports\Msmq\MsmqDequeueStrategy.c
      s:line 197
      2013-09-18 15:57:38,129 [29] INFO  NServiceBus.Unicast.Transport.TransportReceiv
      er [(null)] &lt;(null)&gt; - Failed to process message
      System.InvalidOperationException: Url: "/bulk_docs"
  
      System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xx
      xx-xxxx-xxxx-xxxxxxxxxxxx).
         at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failure
      MessageID, Object failureMessageFormatArgument, String failureArgumentName, Exce
      ption innerException)
         at System.Guid.TryParseGuidWithDashes(String guidString, GuidResult&amp; result)
         at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult&amp; result)
         at System.Guid..ctor(String g)
         at Raven.Database.Server.AbstractRequestResponder.GetRequestTransaction(IHttp
      Context context)
         at Raven.Database.Server.Responders.DocumentBatch.Respond(IHttpContext contex
      t)
         at Raven.Database.Server.HttpServer.DispatchRequest(IHttpContext ctx)
         at Raven.Database.Server.HttpServer.HandleActualRequest(IHttpContext ctx)
       ---&gt; System.Net.WebException: The remote server returned an error: (500) Intern
      al Server Error.
         at System.Net.HttpWebRequest.GetResponse()
         at Raven.Client.Connection.HttpJsonRequest.ReadJsonInternal(Func`1 getRespons
      e) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\HttpJsonReque
      st.cs:line 340
         --- End of inner exception stack trace ---
         at NServiceBus.Unicast.Transport.TransportReceiver.ProcessMessage(TransportMe
      ssage message) in c:\BuildAgent\work\d4de8921a0aabf04\src\NServiceBus.Core\Unica
      st\Transport\TransportReceiver.cs:line 357
         at NServiceBus.Unicast.Transport.TransportReceiver.TryProcess(TransportMessag
      e message) in c:\BuildAgent\work\d4de8921a0aabf04\src\NServiceBus.Core\Unicast\T
      ransport\TransportReceiver.cs:line 235
         at NServiceBus.Transports.Msmq.MsmqDequeueStrategy.ProcessMessage(TransportMe
      ssage message) in c:\BuildAgent\work\d4de8921a0aabf04\src\NServiceBus.Core\Trans
      ports\Msmq\MsmqDequeueStrategy.cs:line 262
         at NServiceBus.Transports.Msmq.MsmqDequeueStrategy.Action() in c:\BuildAgent\
      work\d4de8921a0aabf04\src\NServiceBus.Core\Transports\Msmq\MsmqDequeueStrategy.c
      s:line 197
      2013-09-18 15:57:38,262 [30] INFO  NServiceBus.Unicast.Transport.TransportReceiv
      er [(null)] &lt;(null)&gt; - Failed to process message
      System.InvalidOperationException: Url: "/bulk_docs"
  </code></pre>
  
  <p>I've configured Raven as follows:</p>
  
  <pre><code>   Configure.Instance.Configurer.ConfigureComponent&lt;IDocumentStore&gt;(() =&gt;
              {
                  var store = new DocumentStore
                      {
                          Url = "" // &lt;-- Points to my machine at port 8080
                      };
                  store.Initialize();
                  store.JsonRequestFactory.DisableRequestCompression = true;
                  return store;
              }, DependencyLifecycle.SingleInstance);
  
          Configure.Instance.Configurer.ConfigureComponent&lt;IDocumentSession&gt;(() =&gt; { return Configure.Instance.Builder.Build&lt;IDocumentStore&gt;().OpenSession(); }, DependencyLifecycle.InstancePerUnitOfWork);
          Configure.Instance.Configurer.ConfigureComponent&lt;RavenUnitOfWork&gt;(DependencyLifecycle.InstancePerUnitOfWork);
  </code></pre>
  
  <p>What am I missing here?</p>
  
  <p>Thanks.</p>