0

說明:執行當前Web請求期間發生未處理的異常。請查看堆棧跟蹤以獲取有關該錯誤的更多信息以及源代碼的位置。添加引用並獲取錯誤:System.BadImageFormatException

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Microsoft.Build.Framework' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

源錯誤:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Build.Framework' could not be loaded.

WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

+0

是本地網站。 – 2014-11-05 00:12:00

+0

請多多關注一下?這是一個以前一直在工作,現在不是?它是一個在開發中工作的人,而不是在你將其部署到其他環境時?它是什麼版本的.NET?您是否檢查過應用程序池設置? – sh1rts 2014-11-05 00:45:59

回答

0

檢查,以確保所有綁定在相同的32或64的構建