GZip标头中的幻数不正确EF迁移

问题描述 投票:0回答:1

我正在使用实体迁移命令,如PM> add-migration Test

后;我收到错误“GZip标头中的幻数不正确。请确保传入GZip流。”

重新安装nuget包管理器,reInstall vs2012,但尚未解决我的问题?我该怎么解决呢

PM> Add-Migration Test
System.IO.InvalidDataException: The magic number in GZip header is not correct. Make sure you are passing in a GZip stream.
   at System.IO.Compression.GZipDecoder.ReadHeader(InputBuffer input)
   ...
   at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
The magic number in GZip header is not correct. Make sure you are passing in a GZip stream.
c# entity-framework nuget-package ef-migrations
1个回答
0
投票

删除__MigrationHistory表后,我遇到了同样的问题。我尝试使用Azure恢复数据库的旧备份,并且已修复

© www.soinside.com 2019 - 2024. All rights reserved.