2012-10-11 55 views
2

我已將自定義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) 
+0

到目前爲止複製了哪些DLL?你可能會發現你依賴的dll需要別人。 – Betty

+0

*爲什麼*你會不會只安裝完整的SDK? –

+0

@Betty我已經用dll更新了這個問題。 – Phil

回答

0

看起來像部分地連接到那個問題: http://blogs.msdn.com/b/bharry/archive/2013/02/13/10392771.aspx

不幸的是,我仍然無法區分哪裏找到正確版本的「Micros oft.TeamFoundation.WorkItemTracking.Proxy.dll「庫。

+0

我已經創建了關於我的問題的博客文章。你可以在下面找到它:http://mariuszgorzoch.wordpress.com/2014/02/27/method-trygetrowset-not-found/ –