title: Could not load type from assembly error
body: <p>I have written the following simple test in trying to learn Castle Windsor's Fluent Interface:</p>
  
  <pre><code>using NUnit.Framework;
  using Castle.Windsor;
  using System.Collections;
  using Castle.MicroKernel.Registration;
  
  namespace WindsorSample {
      public class MyComponent : IMyComponent {
          public MyComponent(int start_at) {
              this.Value = start_at;
          }
          public int Value { get; private set; }
      } 
      public interface IMyComponent {
          int Value { get; }
      }
  
      [TestFixture]
      public class ConcreteImplFixture {
          [Test]
          public void ResolvingConcreteImplShouldInitialiseValue() {
              IWindsorContainer container = new WindsorContainer();
              container.Register(Component.For&lt;IMyComponent&gt;().ImplementedBy&lt;MyComponent&gt;().Parameters(Parameter.ForKey("start_at").Eq("1")));
              IMyComponent resolvedComp = container.Resolve&lt;IMyComponent&gt;();
              Assert.AreEqual(resolvedComp.Value, 1); 
          }
      }
  }
  </code></pre>
  
  <p>When I execute the test through TestDriven.NET I get the following error:</p>
  
  <pre><code>System.TypeLoadException : Could not load type 'Castle.MicroKernel.Registration.IRegistration' from assembly 'Castle.MicroKernel, Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc'.
  at WindsorSample.ConcreteImplFixture.ResolvingConcreteImplShouldInitialiseValue()
  </code></pre>
  
  <p>When I execute the test through the NUnit GUI I get:</p>
  
  <pre><code>WindsorSample.ConcreteImplFixture.ResolvingConcreteImplShouldInitialiseValue:
  System.IO.FileNotFoundException : Could not load file or assembly 'Castle.Windsor, Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The system cannot find the file specified.
  </code></pre>
  
  <p>If I open the Assembly that I am referencing in Reflector I can see its information is:</p>
  
  <pre><code>Castle.MicroKernel, Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc
  </code></pre>
  
  <p>and that it definitely contains <strong>Castle.MicroKernel.Registration.IRegistration</strong></p>
  
  <p>What could be going on? </p>
  
  <p>I should mention that the binaries are taken from the <a href="http://builds.castleproject.org/cruise/DownloadBuild.castle?number=956" rel="noreferrer">latest build of Castle</a> though I have never worked with nant so I didn't bother re-compiling from source and just took the files in the bin directory.  I should also point out that my project compiles with no problem.</p>