[英]Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
[英]Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
無法加載文件或程序集“System.Web.Razor,Version=2.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依賴項之一。 定位的程序集的清單定義與程序集引用不匹配。 (來自 HRESULT 的異常:0x80131040)
我已經搜索過此錯誤,但提供的解決方案不起作用。 Visual Studio nuget 包不顯示要升級的已安裝 mvc 包。
在部署期間,收到上述錯誤。 請讓我知道如何解決此錯誤?
每次我遇到這個問題時,它總是與網絡配置文件有關。 檢查您在 ~/Views/web.config 中的引用是否正確,然后重試。
下載並安裝此軟件包:從 Microsoft 官方下載中心下載 Web Pages 2: 下載
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.