MySql Connector 6.8.2 RC, Entity Framework 6 e Code First

Recentemente, atualizei para o Entity Framework 6 e instalei o MySql 6.8.2 RC Connector já que havia suporte para o EF6 Code First agora.

Tenha em mente que, antes da atualização, meu projeto estava funcionando bem no conector 6.7.4 e no EF 5.

Eu fiz as seguintes alterações no meu web.config

<defaultConnectionFactory type="MySql.Data.Entity.MySqlConnectionFactory, MySql.Data.Entity.EF6" />
<providers>
  <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.8.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"></provider>
  <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>

<connectionStrings>
<add providerName="MySql.Data.MySqlClient" name="dbcontext" connectionString="Server=localhost; Database=db; Uid=un; Pwd=pw;Convert Zero Datetime=True" />
</connectionStrings>

Eu também adicionei as seguintes referências (versões .net 4.5)

MySql.DataMySql.Data.Entity.EF6MySql.Web

O problema é - no momento em que o código chama o DBContext que recebo:

Object reference not set to an instance of an object.

Novamente - tenha em mente que tudo funcionou antes da atualização, então eu sei que não é um problema de código, no entanto, talvez eu não tenha configurado o web.config corretamente?

Também - você pode perguntar, se funcionou bem antes da atualização, por que atualizar? Bem, supostamente o EF6 e o ​​novo conector MySql resolvem alguns bugs que eu estava encontrando - então eu estava esperando implementá-lo agora, enquanto ele está em desenvolvimento e no momento em que ele se move para produção (meses a partir de agora) eu deveria ser capaz de carregar a versão de produção do conector 6.8.x.

Aqui está o rastreamento de pilha, caso isso ajude

[NullReferenceException: Object reference not set to an instance of an object.]
MySql.Data.MySqlClient.MySqlProviderServices.GetDbProviderManifestToken(DbConnection connection) +85
System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection) +332
System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection) +67
System.Data.Entity.Infrastructure.<>c__DisplayClass1.<ResolveManifestToken>b__0(Tuple`3 k) +63
System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) +72
System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.ResolveManifestToken(DbConnection connection) +260
System.Data.Entity.Utilities.DbConnectionExtensions.GetProviderInfo(DbConnection connection, DbProviderManifest& providerManifest) +89
System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection) +79
System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +143
System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input) +171
System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +594
System.Data.Entity.Internal.InternalContext.Initialize() +31
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +39
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +138
System.Data.Entity.Internal.Linq.InternalSet`1.Include(String path) +41
System.Data.Entity.Infrastructure.DbQuery`1.Include(String path) +142
[edited].Global.Application_BeginRequest(Object sender, EventArgs e) in c:\edited\Global.asax.cs:47
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

questionAnswers(2)

yourAnswerToTheQuestion