title: Unity application block 2.0 - The given assembly name or codebase was invalid
body: <p><strong>Interfaces (In the assembly named "Interfaces". In project :- Interfaces)</strong></p>
  
  <pre><code>namespace Interfaces
  {
      public interface IDoSomeWork1
      {
          string DoSomeWork1();
      }
  }
  
  namespace Interfaces
  {
      public interface IDoSomeWork2
      {
          string DoSomeWork2();
      }
  }
  </code></pre>
  
  <p><strong>Dependencies (In the assembly named "Entities". In project :- Entities)</strong></p>
  
  <pre><code>namespace Entities
  {
      public class ClassB : IDoSomeWork1
      {
          public string DoSomeWork1()
          {
              return this.ToString();
          }
      }
  }
  
  namespace Entities
  {
      public class ClassC : IDoSomeWork2
      {
          public string DoSomeWork2()
          {
              return this.ToString();
          }
      }
  }
  </code></pre>
  
  <p><strong>Class (In project :- UsingUnity)</strong></p>
  
  <pre><code>public class ClassA
      {
          [Dependency]
          public IDoSomeWork1 DoSomeWork1 { get; set; }
          [Dependency]
          public IDoSomeWork2 DoSomeWork2 { get; set; }
  
  
          public void SomeMethodInClassA()
          {
              Console.WriteLine(DoSomeWork1.DoSomeWork1());
              Console.WriteLine(DoSomeWork2.DoSomeWork2());
          }
      }
  </code></pre>
  
  <p><strong>App.Config (In a console application project :- ConsoleUsingUnity)</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
      &lt;configSections&gt;
          &lt;section name="unity"
                   type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection,
                     Microsoft.Practices.Unity.Configuration" /&gt;
      &lt;/configSections&gt;
      &lt;unity&gt;
          &lt;containers&gt;
              &lt;container&gt;
                  &lt;types&gt;
                      &lt;type type="Interfaces.IDoSomeWork1, Interfaces"
                            mapTo="Entities.ClassB, Entities" /&gt;
                      &lt;type type="Interfaces.IDoSomeWork2, Interfaces"
                            mapTo="Entities.ClassC, Entities" /&gt;
                  &lt;/types&gt;
              &lt;/container&gt;
          &lt;/containers&gt;
      &lt;/unity&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>The client (In a console application project :- ConsoleUsingUnity)</strong></p>
  
  <pre><code>public class Class1
      {
          static void Main(string[] args)
          {
              IUnityContainer container = new UnityContainer();
  
              // Load from config file
              UnityConfigurationSection section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
              section.Configure(container);
  
              ClassA classA = container.Resolve&lt;ClassA&gt;();
              classA.SomeMethodInClassA();
          }
      }
  </code></pre>
  
  <p>And when I run the client, I get the following error at  section.Configure(container);:-</p>
  
  <blockquote>
    <p>The given assembly name or codebase
    was invalid. (Exception from HRESULT:
    0x80131047)</p>
  </blockquote>
  
  <p>I am not sure If there is anything wrong with the config or the type. Could anyone please point out the mistake here?</p>