Could not load type 'System.Reflection.AssemblySignatureKeyAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c


錯誤:

Could not load type 'System.Reflection.AssemblySignatureKeyAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c

調試或者在安裝了VS2012的電腦上運行沒事,但在干凈的環境下,就報這個錯誤。

解決:

查了一下AssemblySignatureKeyAttribute,是.net framework4.5才有。

仔細檢查了一次每個assembly的目標框架,全部是.net framework 4.0

百思不得其解,折騰了一晚上......

最后不得已用排除法,把部署目錄中的文件一個一個移除/添加。

最后發現是*.vshost.exe引起的,刪除后就沒事了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 "Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b7 Could not load file or assembly 'System.Windows.Forms, Version=6.0.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 未能從程序集“mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中加載類型“System.Runtime.CompilerServices.TuppressIldasmAttribute”。已解決 未能從程序集“System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中加載類型“System.Transactions.TransactionScopeAsyncFlowOption” WINFORM 請求“System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”類型的權限已失敗。 System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Could not load file or assembly 'System.Private.ServiceModel, Version=4.1.2.4, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not mat .net core System.IO.FileNotFoundException: Could not load file or assembly 'xxxx, Version=xxx, Culture=neutral, PublicKeyToken=null'. 系統找不到指定的文件。 未能從程序集“System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中加載類型“System.ServiceModel.Activation.HttpModule”。
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM