2011-08-26 5 views
0

SqlMigrations package을 EntityFramework 4.1 용으로 테스트 중이며 this tutorial 단계를 따르고 있습니다.SqlMigrations의 Update-Database 명령은 항상 예외를 throw합니다.

불행히도 Update-Database을 사용할 수 없습니다. 이 코드를 호출하면 항상 같은 예외가 발생합니다.

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 

Windows XP입니다. XP가 지원되지 않을 수도 있습니까?

감사합니다.

답변

2

SqlMigrations 요구 사항에 명시 Entity Framework 4.1 Update 1에 따라 달라집니다 :

지원하는 운영 체제 : 윈도우 7, 윈도우 서버 2003, 윈도우 서버 2008, 윈도우 서버 2008 R2, 윈도우 비스타

그래서 그것은 Windows XP에서 작동하지 않을 수도 있습니다. 특히 ETW에서 오류가 발생하면 문제가 지원되지 않는 OS라고 예상됩니다.

+0

흠, 내 상사에게 업그레이드를 요청할 시간이 있습니다. :) –

관련 문제