Description:
i'm using entity framework 4.1 code first model without existing database with my sql provider 6.4.3.0 in asp.net mvc 4. I'm experiencing that the error: 'The provider did not return a ProviderManifestToken string.' and innerexception Unknown database 'sampledbcontext'. if i tried with my sql connector net 6.4.4.0 it creating well, so i there any work around to solve this problem. And the solution may not be upgrading to newer version, because i'm using this in server, so if i upgrade so many application will not work.
Stack Trace:
[MySqlException (0x80004005): Unknown database 'sampledbcontext']
MySql.Data.MySqlClient.MySqlStream.ReadPacket() +251
MySql.Data.MySqlClient.NativeDriver.AuthenticateNew(Boolean reset) +438
MySql.Data.MySqlClient.NativeDriver.Authenticate(Boolean reset) +139
MySql.Data.MySqlClient.NativeDriver.Open() +2436
MySql.Data.MySqlClient.Driver.Open() +70
MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +250
MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection() +39
MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +372
MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +198
MySql.Data.MySqlClient.MySqlPool.GetConnection() +125
MySql.Data.MySqlClient.MySqlConnection.Open() +764
MySql.Data.MySqlClient.MySqlProviderServices.GetDbProviderManifestToken(DbConnection connection) +73
System.Data.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection) +34
[ProviderIncompatibleException: The provider did not return a ProviderManifestToken string.]
System.Data.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection) +163
System.Data.Entity.ModelConfiguration.Utilities.DbConnectionExtensions.GetProviderInfo(DbConnection connection, DbProviderManifest& providerManifest) +35
System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection) +159
System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +50
System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input) +117
System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +423
System.Data.Entity.Internal.LazyInternalContext.MarkDatabaseInitialized() +16
System.Data.Entity.Database.Initialize(Boolean force) +23
SampleMySql.SampleDbContext..ctor() in D:\Projects\Work\SampleMySql\SampleMySql\SampleDbContext.cs:14
SampleMySql._Default.Page_Load(Object sender, EventArgs e) in D:\Projects\Work\SampleMySql\SampleMySql\Default.aspx.cs:14
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
How to repeat:
if i change the version to 6.4.3.0 it resolving, need to find my sql connector net 6.4.3.0 supported for code first entity framework?