title: NService Bus : "Unable to set the value for key: ScaleOut.UseSingleBrokerQueue."
body: <p>I got this type of error when using nservicebus.structuremap. This is my code.</p>
  
  <p>EndPointConfig.cs</p>
  
  <pre><code>namespace NSBus.Server
  {
  using NServiceBus;
  
  /*
      This class configures this endpoint as a Server. More information about how to configure the NServiceBus host
      can be found here: http://particular.net/articles/the-nservicebus-host
  */
  public class EndpointConfig : IConfigureThisEndpoint, AsA_Server, UsingTransport&lt;Msmq&gt;, IWantCustomInitialization
  {
      public static IBus Bus { get; private set; }
  
      public void Init()
      {
          ConfigureIocTool();
      }
  
      private static void ConfigureIocTool()
      {
          var container = new Container(y =&gt; y.Scan(scan =&gt;
          {
              scan.TheCallingAssembly();
              scan.AssemblyContainingType&lt;SanelibRegistry&gt;();
              scan.AssemblyContainingType&lt;CommonRegistry&gt;();
              scan.AssemblyContainingType&lt;CoreRegistry&gt;();
              scan.WithDefaultConventions();
              scan.LookForRegistries();
          }));
  
          Bus = Configure.With()
              .StructureMapBuilder(container)
              .MsmqSubscriptionStorage()
              .PurgeOnStartup(false)
              .UnicastBus()
              .ImpersonateSender(false)
              .CreateBus()
              .Start(() =&gt; Configure.Instance.ForInstallationOn&lt;NServiceBus.Installation.Environments.Windows&gt;().Install());           
      }    
  }
  </code></pre>
  
  <p>}</p>
  
  <p>this code running successfully but i got error after some time.</p>