title: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder'
body: <p>When I try to set a PARAMETER using the Xml Configuration I get the following error:</p>
  
  <blockquote>
    <p><em>None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type
    'LM.AM.Core.Services.EmailService' can be invoked with the available
    services and parameters: Cannot resolve parameter 'System.String
    testSmtp' of constructor 'Void .ctor(System.String)'.</em></p>
  </blockquote>
  
  <p>Here are the relevant files:</p>
  
  <p><strong>web.config</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>  &lt;configSections&gt;
      &lt;section name="autofac" type="Autofac.Configuration.SectionHandler, Autofac.Configuration" /&gt;
    &lt;/configSections&gt;
  
    &lt;autofac&gt;
      &lt;components&gt;
        &lt;component type="LM.AM.Core.Services.EmailService , LM.AM.Core" service="LM.AM.Core.Infrastructure.Services.IEmailService , LM.AM.Core.Infrastructure"&gt;
          &lt;parameters&gt;
            &lt;parameter name="testSmtp" value="abc" /&gt;
          &lt;/parameters&gt;
        &lt;/component&gt;
      &lt;/components&gt;
    &lt;/autofac&gt;
  </code></pre>
  
  <p><strong>Service Class</strong></p>
  
  <pre><code>public class EmailService : IEmailService
  {
      public string _testSmtp;
  
      public EmailService (string testSmtp)
      {
          _testSmtp = testSmtp;
      }
  }
  </code></pre>
  
  <p><strong>Registration</strong></p>
  
  <pre><code>builder.RegisterType&lt;EmailService&gt;().As&lt;IEmailService&gt;().SingleInstance();
  </code></pre>
  
  <p><strong>Global.asax</strong></p>
  
  <pre><code>var builder = new ContainerBuilder();
  builder.RegisterModule(new ConfigurationSettingsReader("autofac"));
  
  builder.RegisterModule&lt;Core.ModuleInstaller&gt;();
  
  builder.RegisterControllers(typeof(MvcApplication).Assembly);
  AutofacContainer.Container = builder.Build();
  
  var emailSvc = AutofacContainer.Container.Resolve&lt;IEmailService&gt;();
  </code></pre>
  
  <p>I've checked the container is aware of the xml parameter and I've followed the Wiki as close as I can, but for some reason the parameter is not resolving on the only constructor and I'm receiving the above error.</p>
  
  <p>This should be pretty simple to get going. Can anyone provide some suggestions on what I 
  can try to get this working?</p>