簡體   English   中英

網站升級到MVC5.1后,Server 2012r2上缺少System.Runtime 4.0.10.0

[英]System.Runtime 4.0.10.0 missing on Server 2012r2 after website upgrade to MVC5.1

網站在Windows 8.1上可以在本地正常運行,但是在發布到Server 2012R2之后,某些頁面顯示以下錯誤:

異常消息:c:\\ Windows \\ Microsoft.NET \\ Framework64 \\ v4.0.30319 \\ Temporary ASP.NET Files \\ root \\ b306803a \\ 3271e75d \\ App_Web_sign-in.cshtml.1d427dc2.p4pq8o_l.0.cs(30):錯誤CS0012:類型'System.Object'在未引用的程序集中定義。 您必須添加對程序集“ System.Runtime,版本= 4.0.10.0,區域性=中性,PublicKeyToken = b03f5f7f11d50a3a”的引用。

我不知道是什么或如何引用該System.Runtime dll。 我可能會缺少什么,如何找到它?

我不知道是什么或如何引用該System.Runtime dll。 我可能會缺少什么,如何找到它?

我很高興您提到您的操作系統是Windows2012。System.Runtime dll文件作為Windows 8 SDK的一部分分發。

查看更多說明https://stackoverflow.com/a/14517992/3918598

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM