title: Unity: The type name or alias could not be resolved. Please check your configuration file and verify this type name
body: <p>I have the following classes / interfaces in Web API project</p>
  
  <pre><code>namespace API.Services
  {
      public class APIService : IAPIService
      {
          public APIService() { }
      }
  }
  
  namespace API.Services
  {
      public interface IAPIService
      {
      }
  }
  </code></pre>
  
  <p>I am trying to resolve via a Unity configuration file as below:</p>
  
  <pre><code>&lt;Unity&gt;
  
      &lt;typeAliases&gt;
  
        &lt;typeAlias alias="singleton" type="Microsoft.Practices.Unity.ContainerControlledLifetimeManager, Microsoft.Practices.Unity"/&gt;
  
        &lt;typeAlias alias="IAPIService" type="API.Services.IAPIService, API.Services"/&gt;  
  
      &lt;/typeAliases&gt;
  
      &lt;containers&gt;
        &lt;container&gt;
          &lt;types&gt;
  
            &lt;type
              type="IAPIService"
              mapTo="API.Services.APIService, API.Services"
                  &gt;
            &lt;/type&gt;
  
          &lt;/types&gt;
  
  
        &lt;/container&gt;
      &lt;/containers&gt;
    &lt;/Unity&gt;
  </code></pre>
  
  <p>I am then in app start reading from config file and attempting to configure the section</p>
  
  <pre><code>UnityConfigurationSection section = 
  (UnityConfigurationSection)config.GetSection("Unity");
  
  section.Configure(container); &lt;&lt; error here
  </code></pre>
  
  <p>At which point I get the error System.InvalidOperationException: 'The type name or alias IAPIService could not be resolved. Please check your configuration file and verify this type name.'</p>
  
  <p>What am I doing wrong?</p>