Could not load type 'System.Reflection.AssemblySignatureKeyAttribute' from assembly 'mscorlib, Versi

錯誤:框架

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

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

解決:部署

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

仔細檢查了一次每一個assembly的目標框架,所有是.net framework 4.0文件

百思不得其解,折騰了一夜......sse

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

最後發現是*.vshost.exe引發的,刪除後就沒事了。錯誤

相關文章
相關標籤/搜索