title: StructureMap Exception Code: 202 No Default Instance defined for PluginFamily
body: <p>I am new to StructureMap. I have downloaded and am 
  using version 2.6.1.0. I keep getting the below 
  error:</p>
  
  <blockquote>
    <p>StructureMap Exception Code:  202 No
    Default Instance defined for
    PluginFamily
    Company.ProjectCore.Core.IConfiguration,
    Company.ProjectCore, Version=1.0.0.0,
    Culture=neutral, PublicKeyToken=null</p>
  </blockquote>
  
  <p>My Global.asax.cs looks like:</p>
  
  <pre><code>protected void Application_Start(object sender, EventArgs e)
  {
  
      var container = new Container(x =&gt;
                      {
                          x.For&lt;ICache&gt;().Use&lt;Cache&gt;();
                          x.For&lt;IEmailService&gt;().Use&lt;EmailService&gt;();
                          x.For&lt;IUserSession&gt;().Use&lt;UserSession&gt;();
                          x.For&lt;IRedirector&gt;().Use&lt;Redirector&gt;();
                          x.For&lt;INavigation&gt;().Use&lt;Navigation&gt;();
                      });
  
                  container.AssertConfigurationIsValid();
  
  }
  </code></pre>
  
  <p>I changed from ObjectFactory.Initialize to "new Container" to debug. 
  When stepping through the AssertConfigurationIsValid() method, Cache
  works but EmailService fails at the GetInstance method in the 
  following line:</p>
  
  <pre><code>[Pluggable("Default")]
  public class EmailService : IEmailService
  
  private readonly IConfiguration _configuration;
  
  public EmailService()
  {
      _configuration = ObjectFactory.GetInstance&lt;IConfiguration&gt;();
  }
  </code></pre>
  
  <p>If I remove IEmailService, the same 202 error is thrown at IUserSession.</p>
  
  <p>Should I be adding something else in Application_Start or in my class files?</p>
  
  <p>Thanks in advance...</p>