title: Object Reference exception when starting NServicebus endpoint
body: <p>I have an NServicebus project that I cannot start after upgrading from 2.6 to 3.2.7
  The endpoint look like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>namespace Customer.Project.SchemaImportService
  {
      public class SchemaImportEndpoint : IConfigureThisEndpoint, AsA_Server, IWantCustomInitialization
      {
      private IContainer _container;
  
      public void Init()
      {
          log4net.Config.XmlConfigurator.Configure();
          SetupStructureMap();
  
          Configure.With()
              .Log4Net()
              .StructureMapBuilder(_container)
              .DisableTimeoutManager()
              .XmlSerializer()
              .CreateBus();
      }
  
      private void SetupStructureMap()
      {
          // implementation omitted
      }
  }
  </code></pre>
  
  <p>Furthermore, the app.config looks like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;configuration&gt;
  &lt;configSections&gt;
  &lt;section name="MsmqTransportConfig" type="NServiceBus.Config.MsmqTransportConfig, NServiceBus.Core" /&gt;
  &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false" /&gt;
  &lt;section name="MessageForwardingInCaseOfFaultConfig" type="NServiceBus.Config.MessageForwardingInCaseOfFaultConfig, NServiceBus.Core" /&gt;
  &lt;section name="Logging" type="NServiceBus.Config.Logging, NServiceBus.Core" /&gt;
  &lt;/configSections&gt;
  &lt;MsmqTransportConfig NumberOfWorkerThreads="1" MaxRetries="5" /&gt;
  &lt;Logging Threshold="DEBUG" /&gt; 
  &lt;log4net debug="true"&gt; &lt;!-- logging details omitted --&gt;  &lt;/log4net&gt;
  &lt;MessageForwardingInCaseOfFaultConfig ErrorQueue="Customer.Project.SchemaImportService.Error" /&gt;
  </code></pre>
  
  <p>When I debug the project I start the NServicebus.Host.exe file, I've tried switching profiles (Production, Integration and Lite) with the same result.</p>
  
  <p>The exception that is gives (after leaving the init statement) look like this: </p>
  
  <pre><code>Message: "Exception when starting endpoint, error has been logged. Reason: Object reference not set to an instance of an object."
  Source: NserviceBus.Host
  
  StackTrace: at NServiceBus.Hosting.GenericHost.Start() in     c:\TeamCity\buildAgent\work\nsb.master_7\src\hosting\NServiceBus.Hosting\GenericHost.cs:line 45
  at NServiceBus.Hosting.Windows.WindowsHost.Start() in     c:\TeamCity\buildAgent\work\nsb.master_7\src\hosting\NServiceBus.Hosting.Windows\WindowsHost.cs:line 56
     at NServiceBus.Hosting.Windows.Program.&lt;&gt;c__DisplayClass8.&lt;Main&gt;b__4(WindowsHost service) in     c:\TeamCity\buildAgent\work\nsb.master_7\src\hosting\NServiceBus.Hosting.Windows\Program.cs:line 97
     at Topshelf.Internal.ControllerDelegates`1.StartActionObject(Object obj) in     c:\Projects\TopShelfForNSB\src\Topshelf\Internal\ControllerDelegates.cs:line 18
     at Topshelf.Internal.IsolatedServiceControllerWrapper`1.&lt;&gt;c__DisplayClass2.    &lt;set_StartAction&gt;b__1(TService service) in    c:\Projects\TopShelfForNSB\src\Topshelf\Internal\IsolatedServiceControllerWrapper.cs:line 65
     at Topshelf.Internal.ServiceController`1.&lt;.cctor&gt;b__1(ServiceController`1 sc) in c:\Projects\TopShelfForNSB\src\Topshelf\Internal\ServiceController.cs:line 35
     at Magnum.StateMachine.LambdaAction`1.Execute(T instance, Event event, Object parameter) in :line 0
     at Magnum.StateMachine.EventActionList`1.Execute(T stateMachine, Event event, Object     parameter) in :line 0
  </code></pre>
  
  <p>The following lines get logged in my log file:</p>
  
  <pre><code>INFO  2012-08-21 13:25:24,881 18494ms RoleManager            gureBusForEndpoint - Role NServiceBus.AsA_Server configured
  DEBUG 2012-08-21 13:25:25,124 18738ms TransactionalTransport DebugFormat        - Setting throttling to: [1] message/s per second, sleep between receiving message: [800]
  FATAL 2012-08-21 13:25:25,158 18772ms GenericHost            Start              - System.NullReferenceException: Object reference not set to an instance of an object.
     at NServiceBus.Unicast.Transport.Transactional.TransactionalTransport.NServiceBus.Unicast.Transport.ITransport.Start(Address address)
     at NServiceBus.Unicast.UnicastBus.NServiceBus.IStartableBus.Start(Action startupAction)
     at NServiceBus.Unicast.UnicastBus.NServiceBus.IStartableBus.Start()
     at NServiceBus.Hosting.GenericHost.Start() in  c:\TeamCity\buildAgent\work\nsb.master_7\src\hosting\NServiceBus.Hosting\GenericHost.cs:line 32
  </code></pre>
  
  <p>The last bit of information I can provide (but perhaps the most important one), is that if I delete all my messagequeues, the main queue is not automatically recreated.</p>
  
  <p>these private queues get created:</p>
  
  <pre><code>customer.project.schemaimportservice.error
  customer.project.schemaimportservice.retries
  </code></pre>
  
  <p>but the</p>
  
  <pre><code>customer.project.schemaimportservice
  </code></pre>
  
  <p>queue is missing, even though it matches my namespace (see top of posting).</p>
  
  <p>What am I doing wrong?  Must I manually configure the messagequeue name in version 3.2.7?</p>