2011-08-26 4 views
0

J'essaie le SqlMigrations package pour EntityFramework 4.1 et suis les étapes dans this tutorial. Je ne peux malheureusement pas obtenir Update-Database pour fonctionner. L'appeler produit toujours la même exception:La commande Update-Database dans SqlMigrations génère toujours une exception

PM> Update-Database 
No pending custom scripts found. 
Ensuring database matches current model. 
Update-Database : The type initializer for 'Microsoft.Data.Tools.Schema.Common.Diagnostics.EtwProvider' threw an exception. 
At line:1 char:16 
+ Update-Database <<<< 
    + CategoryInfo   : NotSpecified: (:) [Update-Database], TypeInitializationException 
    + FullyQualifiedErrorId : System.TypeInitializationException,System.Data.Entity.Migrations.Commands.MigrateCommand 

Je suis sous Windows XP. Est-il possible que XP ne soit pas supporté?

Merci.

Répondre

2

SqlMigrations dépendent Entity Framework 4.1 Update 1 qui énonce des exigences:

Systèmes d'exploitation supportés: Windows 7, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Vista

Alors il est possible que cela ne fonctionne pas avec Windows XP. Surtout quand l'erreur vient d'ETW, il est plus que prévu que le problème est OS non pris en charge.

+0

Hmm, il serait peut-être temps de demander à mon patron une mise à niveau :) –

Questions connexes