【发布时间】:2019-05-23 17:46:41
【问题描述】:
我正在尝试部署 Hangfire ASP.net Core 2.1 MVC Hangfire 应用程序。
它可以在本地工作,但是当我部署它时出现此错误:
An error occurred while starting the application.
FileLoadException: Could not load file or assembly 'Hangfire.SqlServer, Version=1.6.21.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
我可以托管其他 .net Core 2.1 MVC 网站。
通常在过去 - 在不同的非 Hangfire 应用程序中 - 如果我的解决方案中有 NuGet 包不匹配,则会出现清单定义错误,但这是解决方案中唯一使用 Hangfire 的项目。
我已经尝试删除 hangfire 数据库,重新创建它,重新启动服务器 - 没有任何帮助。
我在 Google 上也找不到有关此特定错误的任何信息。我错过了什么?
在非核心站点中,将向 Web.Config 添加一些内容来解决此问题 - 在 .net Core 中如何完成?对旧版本软件包的引用来自哪里?
【问题讨论】:
标签: c# asp.net-core-mvc hangfire