title: NserviceBus throws exception when referencing a Nettiers assembly
body: <p>We use nettiers as a our data layer, and we recently have started looking at using NServiceBus, but we have hit a wall.</p>
  
  <p>We have a windows service which hosts NSB and references our Nettiers assembly.</p>
  
  <p>the service is throwing an exception when the following line is encountered.</p>
  
  <pre><code>var Bus = Configure.With().SpringBuilder()
              .XmlSerializer()
              .MsmqTransport()
                  .IsTransactional(false)
                  .PurgeOnStartup(false)
              .UnicastBus()
                  .ImpersonateSender(false)
              .CreateBus()
              .Start();
  </code></pre>
  
  <p>the exceptions that is throw is:</p>
  
  <pre><code>Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
  </code></pre>
  
  <p>the loader exception message is:</p>
  
  <pre><code>Could not load file or assembly 'Microsoft.Practices.Unity, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.":"Microsoft.Practices.Unity, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
  </code></pre>
  
  <p>stacktrace is:</p>
  
  <pre><code>at System.Reflection.Module._GetTypesInternal(StackCrawlMark&amp; stackMark)
  at System.Reflection.Assembly.GetTypes()
  at NServiceBus.Configure.&lt;&gt;c__DisplayClass1.&lt;With&gt;b__0(Assembly a) in d:\BuildAgent-03\work\672d81652eaca4e1\src\config\NServiceBus.Config\Configure.cs:line 122
  at System.Array.ForEach[T](T[] array, Action`1 action)
  at NServiceBus.Configure.With(Assembly[] assemblies) in d:\BuildAgent-03\work\672d81652eaca4e1\src\config\NServiceBus.Config\Configure.cs:line 122
  at NServiceBus.Configure.With(IEnumerable`1 assemblies) in d:\BuildAgent-03\work\672d81652eaca4e1\src\config\NServiceBus.Config\Configure.cs:line 111
  at NServiceBus.Configure.With(String probeDirectory) in d:\BuildAgent-03\work\672d81652eaca4e1\src\config\NServiceBus.Config\Configure.cs:line 101
  at NServiceBus.Configure.With() in d:\BuildAgent-03\work\672d81652eaca4e1\src\config\NServiceBus.Config\Configure.cs:line 78
  at MessageSender.Program.Main(String[] args) in C:\Development\NSBTest4\MessageSender\Program.cs:line 18
  </code></pre>
  
  <p>without the nettiers reference NSB works fine. Any idea what the problem is and how to solve it?</p>
  
  <p>thanks.</p>