出於某種原因,在發佈的Web應用程序到IIS服務器我收到引用錯誤如下:發佈webservice的參考問題
無法加載文件或程序集 「Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader」或 其依賴關係之一。試圖加載一個 格式不正確的程序。
描述:在執行 當前Web請求期間發生未處理的異常。請查看堆棧跟蹤以獲取有關該錯誤的更多信息以及源代碼的位置。
異常詳細信息:System.BadImageFormatException:無法加載文件 或組件 「Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader」或一個依賴的 之一。試圖加載一個 格式不正確的程序。
以下是我測試過:
1. Remove obj/, bin/ directories from project to make sure build will be clear build
2. Rebuild solution and run using VS
3. Application works on IIS Express
4. Stop debug session
5. Publish application to IIS
6. Not working, assembly issue
7. Try to run again with debug session
8. Assembly issue
我很困惑。
查看正在運行的應用程序池的高級設置。將允許32位應用程序設置爲true並查看是否解決該問題。 – Crowcoder 2014-10-20 22:39:25
應用程序是64位與64位庫,所以它沒有工作。 – J33nn 2014-10-21 09:27:10