我正在试用EntityFramework 4.1的SqlMigrations package,并遵循this tutorial中的步骤。
不幸的是,我不能让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?
谢谢。
发布于 2011-08-26 17:56:47
SqlMigrations依赖于Entity Framework 4.1 Update 1,它在requirements中说明:
支持
的操作系统: Windows 7、Windows Server 2003、Windows Server 2008、Windows Server 2008 R2、Windows Vista
因此,它有可能在Windows XP上不起作用。特别是当错误来自ETW时,问题更多的是不支持的操作系统。
https://stackoverflow.com/questions/7202907
复制相似问题