Ich möchte die neue Migrationsfunktion von EF verwenden, aber auf meinem lokalen Computer, wenn ich eine Medium Trust-Umgebung simuliere, die "Vertrauensebene = Medium" in der Datei web.config hinzufügt diese Sicherheitsausnahme:Entity Framework 4.3 Migrationen und mittleres Vertrauen
System.Reflection.RuntimeMethodInfo.GetMethodBody() +24
System.Data.Entity.Migrations.DbMigrator..ctor(DbMigrationsConfiguration configuration, DbContext usersContext) +1031
System.Data.Entity.Migrations.DbMigrator..ctor(DbMigrationsConfiguration configuration) +66
System.Data.Entity.MigrateDatabaseToLatestVersion`2.InitializeDatabase(TContext context) +52
System.Data.Entity.<>c__DisplayClass2`1.<SetInitializerInternal>b__0(DbContext c) +75
System.Data.Entity.Internal.<>c__DisplayClass8.<PerformDatabaseInitialization>b__6() +19
System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action) +72
System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization() +185
System.Data.Entity.Internal.LazyInternalContext.<InitializeDatabase>b__4(InternalContext c) +7
System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input) +118
System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action) +190
System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase() +73
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +28
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +57
System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +15
System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +37
System.Linq.Queryable.Where(IQueryable`1 source, Expression`1 predicate) +63
EF Migration funktioniert nur in voller Vertrauensstellung?
Was genau wollen Sie wissen? – Steven
Ich möchte wissen, ob Migrationen in Medium Trust nicht funktionieren können oder ich habe einige Probleme auf meinem Computer. –
Aktualisieren Sie Ihre Frage, um dies zu verdeutlichen und Informationen über die Ausnahme oder den Fehler, den Sie erhalten, hinzuzufügen. – Steven