gpt4 book ai didi

entity-framework - 更新数据库时 System.Resources.MissingManifestResourceException

转载 作者:行者123 更新时间:2023-12-04 02:31:45 25 4
gpt4 key购买 nike

我将我正在处理的 Web 应用程序从一台机器移动到另一台机器。它是使用 .Net MVC 和 Entity Framework 构建的,但是当我执行 Update-Database 时命令以便更新数据库,我收到此错误:

Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "NameofMigration.resources" was correctly embedded or linked into assembly "NameofProject" at compile time, or that all the satellite assemblies required are loadable and fully signed.

有谁知道如何解决这个错误?

最佳答案

当其他开发人员 checkin 项目时,当迁移的 resx 部分未包含在项目文件中时,我遇到了类似的问题(可能是由于合并问题)。您可能会发现 resx 文件在那里,但显示为灰色。如果存在,请尝试右键单击“NameofMigration.resx”文件并选择“包含在项目中”。如果它不在那里,你最好去另一台机器上找到它并将其添加到项目中:-)

关于entity-framework - 更新数据库时 System.Resources.MissingManifestResourceException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16697075/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com