我正在编写一个从 TFS 获取错误的应用程序。当我在安装了运行 Windows 8 的 Visual Studio 的机器上运行该程序时,它运行良好。当我在运行 Server 2008 R2 和 Windows 7 并安装了 Visual Studio 代理的虚拟机上运行此程序时,它会引发以下异常
Error occured: Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. An attempt was made to load a program with an incorrect format.
at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.InitializeInternal()
at AutomationEntities.TFSManager.GetBugsFromTestCase(Int32 testCaseID)
at AutomationEntities.ReportManager.GetBugStringFromTestCases(String testCaseString, String status)
at AutomationEntities.ReportManager.InsertOrUpdateReport(String agentMachineName, String product, String versionName, String serverURL, String testCategory, String testName, String testNumber, String status, DateTime lastModifyTime, String errorMessage, Nullable`1 elapsedTime)
at AutomationManager.XMLHandlerReport.AddItemToReportDatabase(String agentMachineName, String product, String version, String serverURL, String testCategory, String testName, TEST_STATUS testStatus, String errorMessage, String testNumber, String elapsedTime)
at AutomationManager.ReportManager.ReportIndividualTestItem(TestData pendingTest, String testName, TEST_STATUS testStatus, String errorMessage, String resultsFileWPath)
at AutomationManager.Program.Main(String[] args)
我所有的机器都运行 64 位 Windows
我不知道。列出的 Dll 与应用程序位于同一文件夹中,并且是版本 11。关于我缺少什么的任何想法?