Pregunta

I am trying out the SqlMigrations package for EntityFramework 4.1 and am following the steps in this tutorial.

Unfortunately I cannot get Update-Database to work. Calling it always produces the same 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

I am on Windows XP. Is it possible that XP is not supported?

Thanks.

¿Fue útil?

Solución

SqlMigrations are dependent on Entity Framework 4.1 Update 1 which states in requirements:

Supported Operating Systems: Windows 7, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Vista

So it is possible that it doesn't work with Windows XP. Especially when error come from ETW it is more then expected that problem is unsupported OS.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top