title: Unity The parameter host could not be resolved when attempting to call constructor
body: <p>When I attempt to instantiate my instance of the base class I get the error:</p>
  
  <p>a ResolutionFailedException with roughly the following error "The parameter host could not be resolved when attempting to call constructor"</p>
  
  <p>
  I'm currently not using an Interface for the base type and my instance of the class is inheriting the base type class. I'm new to Unity and DI so I'm thinking its something I forgot possibly. 
  </p>
  
  <pre><code>ExeConfigurationFileMap map = new ExeConfigurationFileMap();
  map.ExeConfigFilename = "Unity.Config";
  Configuration config = ConfigurationManager.OpenMappedExeConfiguration(map,  ConfigurationUserLevel.None);
  UnityConfigurationSection section = (UnityConfigurationSection)config.GetSection("unity");
  IUnityContainer container = new UnityContainer();
  section.Containers.Default.Configure(container);
  //Throws exception here on this
  BaseCalculatorServer server = container.Resolve&lt;BaseCalculatorServer&gt;();
  </code></pre>
  
  <p>and the Unity.Config file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
  
      &lt;!--Unity 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 name ="CalculatorServer" type="Calculator.Logic.BaseCalculatorServer, Calculator.Logic" mapTo="Calculator.Logic.CalculateApi, Calculator.Logic"/&gt;
                  &lt;/types&gt;
  
              &lt;/container&gt;
  
          &lt;/containers&gt;
      &lt;/unity&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The Base class</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Runtime.Serialization;
  using System.ServiceModel;
  using System.ServiceModel.Transactions;
  using Microsoft.Practices.Unity;
  using Calculator.Logic;
  
  namespace Calculator.Logic
  {
  
      public class BaseCalculatorServer : IDisposable
      {
          public BaseCalculatorServer(){}
          public CalculateDelegate Calculate { get; set; }
          public CalculationHistoryDelegate CalculationHistory { get; set; }
  
  
          /// &lt;summary&gt;
          /// Performs application-defined tasks associated with freeing, releasing, or     resetting unmanaged resources.
          /// &lt;/summary&gt;
          public void Dispose()
          {
              this.Dispose();
          }
      }
  }
  </code></pre>
  
  <p>The Implementation</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using Calculator.Logic;
  using System.ServiceModel;
  using System.ServiceModel.Configuration;
  using Microsoft.Practices.Unity;
  
  namespace Calculator.Logic
  {
      public class CalculateApi:BaseCalculatorServer
      {
          public CalculateDelegate Calculate { get; set; }
          public CalculationHistoryDelegate CalculationHistory { get; set; }
      }
  }
  </code></pre>
  
  <p>Yes both base class and implementation are in the same Namespace and thats something design wise that will change once I get this working. 
  Oh and a more detailed error</p>
  
  <p>Resolution of the dependency failed, type = "Calculator.Logic.BaseCalculatorServer", name = "". Exception message is: The current build operation (build key Build Key[Calculator.Logic.BaseCalculatorServer, null]) failed: The value for the property "Calculate" could not be resolved. (Strategy type BuildPlanStrategy, index 3)</p>