title: StructureMap Exception Code: 202 No Default Instance defined for PluginFamily
body: <p>I am Using Entity Framework 4.0 calling the below mentioned code from asp.net. I have a address table in which I need to insert some data. my code is :</p>
  
  <pre><code>        IRepository&lt;Address&gt; addressRepository;
          int addressHOCODE = 0;
  
          try
          {
              **addressRepository = ObjectFactory.GetInstance&lt;IRepository&lt;Address&gt;&gt;();**
  
              addressRepository.Add(address);
              addressRepository.SaveChanges();
              addressHOCODE = address.HOCODE;
          }
          catch ...
  </code></pre>
  
  <p>At the <code>addressRepository = ObjectFactory.GetInstance&lt;IRepository&lt;Address&gt;&gt;();</code> line, we're getting the following error.</p>
  
  <blockquote>
    <p>StructureMap Exception Code:  202 No
    Default Instance defined for
    PluginFamily
    Domain.IRepository`1[[Data.Address,
    DataAccessLayerNew, Version=1.0.0.0,
    Culture=neutral,
    PublicKeyToken=null]],
    DataAccessLayerNew, Version=1.0.0.0,
    Culture=neutral, PublicKeyToken=null</p>
  </blockquote>