title: 'System.Data.Entity.Core.ProviderIncompatibleException' in EntityFramework
body: <p>I had a project working with EF 6.0.2 but now I get an error with EF 6.1:</p>
  
  <p>An exception of type 'System.Data.Entity.Core.ProviderIncompatibleException' occurred in EntityFramework.dll but was not handled in user code</p>
  
  <p>Additional information: An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See <a href="http://go.microsoft.com/fwlink/?LinkId=386386" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=386386</a> for information on DbContext and connections. See the inner exception for details of the failure.</p>
  
  <p><strong>The provider did not return a ProviderManifestToken string.</strong></p>
  
  <p>{"Unable to determine the provider name for provider factory of type 'System.Data.SqlClient.SqlClientFactory'. Make sure that the ADO.NET provider is installed or registered in the application config."}</p>
  
  <p>Any idea what might be wrong? I am not sure where to look.</p>
  
  <p>My DBContext is as follows:</p>
  
  <pre><code>public class Context : DbContext {
  
    public Context()
      : base() {
  
      Configuration.With(x =&gt; {
        x.LazyLoadingEnabled = false;
      });
  
    }  // Context
  
    public DbSet&lt;User&gt; Users { get; set; }
  
    protected override void OnModelCreating(DbModelBuilder builder) {
      builder.Configurations.With(x =&gt; { x.Add(new UserMapper()) });
    }
  
  }
  </code></pre>
  
  <p>And on my Web.Config I have the following:</p>
  
  <pre><code>&lt;add name="Context" providerName="System.Data.SqlClient" connectionString="Server=.\SQLEXPRESS;Database=MYDB;Trusted_Connection=true;" /&gt;
  </code></pre>
  
  <p>I am injecting the Context in a Repository using StructureMap:</p>
  
  <pre><code>For&lt;DbContext&gt;().HybridHttpOrThreadLocalScoped().Use(() =&gt; new Context());
  For&lt;IRepository&gt;().Transient().Use&lt;Repository&gt;();
  </code></pre>
  
  <p>Thank You,
  Miguel</p>