无法确定存储版本是否存在有效的存储连接或版本提示

时间:2017-12-08 07:21:53

标签: entity-framework ef-code-first sql-server-ce sql-server-ce-4

主要例外 - >提供程序未返回提供程序清单实例

我首先使用实体​​框架代码和Sql ce 4.0

请找到下面的堆栈跟踪

at System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifest(String manifestToken)    在System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.InitializeProviderServices(String providerManifestToken)    在System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Generate(IEnumerable 1 migrationOperations, String providerManifestToken) at System.Data.Entity.Migrations.DbMigrator.GenerateStatements(IList 1次操作,String migrationId)    在System.Data.Entity.Migrations.Infrastructure.MigratorBase.GenerateStatements(IList 1 operations, String migrationId) at System.Data.Entity.Migrations.DbMigrator.ExecuteOperations(String migrationId, VersionedModel targetModel, IEnumerable 1个操作,IEnumerable 1 systemOperations, Boolean downgrading, Boolean auto) at System.Data.Entity.Migrations.DbMigrator.ApplyMigration(DbMigration migration, DbMigration lastMigration) at System.Data.Entity.Migrations.Infrastructure.MigratorBase.ApplyMigration(DbMigration migration, DbMigration lastMigration) at System.Data.Entity.Migrations.DbMigrator.Upgrade(IEnumerable 1 pendingMigrations,String targetMigrationId,String lastMigrationId)    在System.Data.Entity.Migrations.Infrastructure.MigratorBase.Upgrade(IEnumerable`1 pendingMigrations,String targetMigrationId,String lastMigrationId)    在System.Data.Entity.Migrations.DbMigrator.UpdateInternal(String targetMigration)    在System.Data.Entity.Migrations.DbMigrator。<> c__DisplayClasse.b__d()    在System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)    在System.Data.Entity.Migrations.Infrastructure.MigratorBase.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)    在System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)    在System.Data.Entity.Migrations.Infrastructure.MigratorBase.Update()    位于c:\ Users \ ramakrishna.j \ Source \ Workspaces \ AARWorkspace \ PS.MHS.AAR \ Dev \ PS.MHS.AAR.Entities \ Migration中的PS.MHS.AAR.Entities.Migrations.Migration.ApplyMigrations()。 cs:第27行    位于c:\ Users \ ramakrishna.j \ Source \ Workspaces \ AARWorkspace \ PS.MHS.AAR \ Dev \ PS.MHS.AAR.Repository \ MigrationRepository.cs中的PS.MHS.AAR.Repository.MigrationRepository.ApplyMigrations():第17行    位于c:\ Users \ ramakrishna.j \ Source \ Workspaces \ AARWorkspace \ PS.MHS.AAR \ Dev \ PS.MHS.AAR.Business \ Implementations \中的PS.MHS.AAR.Business.Implementations.MigrationBusiness.ApplyMigrations() MigrationBusiness.cs:第21行    位于c:\ Users \ ramakrishna.j \ Source \ Workspaces \ AARWorkspace \ PS.MHS.AAR \ Dev \ PS.MHS.AAR.App \ App中的PS.MHS.AAR.App.App.OnStartup(StartupEventArgs e)。 xaml.cs:第138行

0 个答案:

没有答案