2015-09-16 16 views
2

我剛剛將我的本地版本發佈到開發服務器上。我的本地工作正常,但開發者有錯誤:Umbraco在開發服務器上收到錯誤

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. 
+0

您確定dev服務器與本地計算機具有相同的.NET Framework嗎?所有的.dll都被推送到開發? –

+0

是的,同一版本,我複製了所有文件。 – levipadre

+0

奇怪。本地和dev上的IIS應用程序(應用程序池)是否設置爲使用相同的框架? IIS是同一個版本嗎?在web.config中是否存在對System.Net.Http.Formatting的引用,如果是這樣,是否嘗試刪除它? –

回答

0

也許這將幫助 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" /> 

0

我和Umbraco有同樣的問題。我已經安裝了Umbraco v7.4.3,並且嘗試了Ucalendar Package。 您必須刪除軟件包並恢復app_dataconfig文件夾。

相關問題