0

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.

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Hmm, might be time to ask my boss for an upgrade :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.