【问题标题】:Umbraco gets error on dev serverUmbraco 在开发服务器上出现错误
【发布时间】:2015-09-16 01:04:38
【问题描述】:

我刚刚将我的本地版本发布到开发服务器。我的本地运行良好,但开发人员出错:

Could not load file or assembly 'System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

有人知道我该如何解决吗?

我开始使用 VS 2015,因为 nuget 版本。现在我在输出框中遇到了一些不同的错误:

 No way to resolve conflict between "System.Net.Http.Formatting, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "System.Net.Http.Formatting, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" arbitrarily.
1>  Consider app.config remapping of assembly "System.Net.Http.Formatting, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "5.0.0.0" [] to Version "5.2.3.0" [F:\Projects\frs\frs\bin\System.Net.Http.Formatting.dll] to solve conflict and get rid of warning.
1>  Consider app.config remapping of assembly "System.Web.WebPages, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [] to Version "2.0.0.0" [F:\Projects\frs\frs\bin\System.Web.WebPages.dll] to solve conflict and get rid of warning.
1>  Consider app.config remapping of assembly "System.Web.Mvc, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "3.0.0.0" [] to Version "4.0.0.0" [F:\Projects\frs\frs\bin\System.Web.Mvc.dll] to solve conflict and get rid of warning.

【问题讨论】:

  • 您确定开发服务器与您的本地计算机具有相同的 .NET Framework 吗?所有的 .dll 都推送到 dev 了吗?
  • 是的,版本相同,我复制了所有文件。
  • 很奇怪。本地和开发上的 IIS 应用程序(应用程序池)是否设置为使用相同的框架? IIS 两个地方的版本相同吗? web.config 中是否有对 System.Net.Http.Formatting 的引用,如果有,您是否尝试将其删除?
  • 我不确定,我认为没有任何参考,但我需要在晚上检查。
  • 我查了,本地是4.5,服务器是4.5.2。还可以吗?

标签: web-config umbraco7


【解决方案1】:

也许这会有所帮助 https://our.umbraco.org/forum/getting-started/installing-umbraco/53820-Could-not-load-file-or-assembly-SystemNetHttp-after-upgrade-to-v-621

<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />

到这里:

<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />

【讨论】:

    【解决方案2】:

    我对 Umbraco 也有同样的问题。我已经安装了 Umbraco v7.4.3 并尝试了其中的 Ucalendar 包。 您必须删除包并恢复 app_dataconfig 文件夹。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-31
      • 2013-01-05
      • 1970-01-01
      • 2018-09-27
      • 1970-01-01
      相关资源
      最近更新 更多