我已將自定義TFS事件點部署到我們的生產Web服務器。服務器沒有安裝TFS sdk,所以我不得不查找和bin部署所有依賴的dll。出於某種原因,當應用程序嘗試使用TFS客戶端聯繫TFS時,它僅在服務器上引發缺少的方法異常。有誰知道如何讓這個Web服務在系統上運行而不需要安裝完整的SDK?TFS 2010 WorkItem客戶端 - 找不到方法異常
的集裝箱部署TFS的DLL
- Microsoft.TeamFoundation.Client.dll
- Microsoft.TeamFoundation.Common.dll
- Microsoft.TeamFoundation.Common.Library.dll
- Microsoft.TeamFoundation .dll
- Microsoft.TeamFoundation.WorkItemTracking.Client.Cache.dll
- Microsoft.TeamFoundation.WorkItemTracking .Client.DataStore.dll
- Microsoft.TeamFoundation.WorkItemTracking.Client.dll
- Microsoft.TeamFoundation.WorkItemTracking.Proxy.dll
異常
System.MissingMethodException: Method not found: 'Boolean Microsoft.TeamFoundation.Client.TfsConnection.HandleUnauthorizedException(Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException)'.
at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.HandleComException(Int32 hr)
at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DatastoreClass.ConnectEx(String connectionString, String defaultCachePath, String instanceId, String userSamName, String userFriendlyName, String userSid, WorkItemServer clientService)
at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.InitializeInternal()
at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.Microsoft.TeamFoundation.Client.ITfsTeamProjectCollectionObject.Initialize(TfsTeamProjectCollection teamProjectCollection)
at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore..ctor(TfsTeamProjectCollection teamProjectCollection)
到目前爲止複製了哪些DLL?你可能會發現你依賴的dll需要別人。 – Betty
*爲什麼*你會不會只安裝完整的SDK? –
@Betty我已經用dll更新了這個問題。 – Phil