我正在尝试从应用服务器远程执行数据库迁移。 当我运行迁移(通过powershell和章鱼部署)时,我收到以下错误
System.Runtime.Serialization.SerializationException: Type is not resolved for member 'System.Data.Entity.Migrations.Design.ToolingFacade+UpdateRunner,EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
08:21:01Info
at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
08:21:01Info
at System.Data.Entity.Migrations.Console.Program.Run()
08:21:01Info
at System.Data.Entity.Migrations.Console.Program.Main(String[] args)
08:21:01Info
ERROR: Type is not resolved for member 'System.Data.Entity.Migrations.Design.ToolingFacade+UpdateRunner,EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
我正在运行的是类似下面的内容
migrate.exe D:\test\apps\myproject.domain.dll /startupConfigurationFile='D:\test\apps\myapp.config'
我已经检查了路径,确保没有任何&或任何特殊的东西,尝试了几条不同的路径
并尝试在其他帖子中建议的一些配置调整,并尝试添加以下配置
<dependentAssembly>
<assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.3.1.0" newVersion="4.3.1.0" />
</dependentAssembly>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework" requirePermission="false"/>
仍然没有运气! 有什么想法吗?
提前致谢