Subscription of BuildCompletionEvent2 fails
-
9. března 2012 11:05
Currently, the global lists that contains builds are nout updated. As an admin, I want to enable this feature again.
So I try with
bissubscribe /eventType BuildCompletionEvent2 /address http://myserver:8080/tfs/defaultcollection/WorkItemTracking/v1.0/Integration.asmx /deliveryType Soap /collection http:
//myserver:8080/tfs/defaultcollectionBut in the eventlog I find:
I suspect that the BuildCompletionEvent and the asmx service is not compatible, are there another Soap endpoint that should subscribe to this event?
TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 3/9/2012 10:48:44 AM
Machine: myserver
Application Domain: /LM/W3SVC/8080/ROOT/tfs-1-129757623707045650
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Service Host: 82f1fa3d-9a69-4f26-bf45-4dcccf5d72a6 (DefaultCollection)
Process Details:
Process Name: w3wp
Process Id: 10520
Thread Id: 11460
Account name: SYS\x_TFSSVC
Web Request Details
Url: http://myserver:8080/tfs/_tfs_resources/WorkItemTracking/v1.0/Integration.asmx [method: POST]
User Agent: Team Foundation (TfsJobAgent.exe, 10.0.40219.371)
Headers: Content-Length=2931&Content-Type=application%2fsoap%2bxml%3b+charset%3dutf-8&Accept-Encoding=gzip%2cgzip%2cgzip&Accept-Language=en-US&Authorization=NTLM+TlRMTVNTUAADAAAAAAAAAFgAAAAAAAAAWAAAAAAAAABYAAAAAAAAAFgAAAAAAAAAWAAAAAAAAABYAAAABcKIogYAchcAAAAP1gJTkvyMjj1zDYA%2bQN03hw%3d%3d&Expect=100-continue&Host=sysmstfaps6-s1%3a8080&User-Agent=Team+Foundation+(TfsJobAgent.exe%2c+10.0.40219.371)&X-TFS-Version=1.0.0.0&X-TFS-Session=00000000-0000-0000-0000-000000000000&TF-Instance=00000000-0000-0000-0000-000000000000&SOAPAction=http%3a%2f%2fschemas.microsoft.com%2fTeamFoundation%2f2005%2f06%2fServices%2fNotification%2f03%2fNotify
Path: /tfs/_tfs_resources/WorkItemTracking/v1.0/Integration.asmx
Local Request: True
Host Address: ::1
User: SYS\TFSSVC [authentication type: NTLM]
Detailed Message: There is an error in the XML document.
WhatJorgen
Všechny reakce
-
12. března 2012 5:40Moderátor
Hi Jorgen,
Thanks for your post.
As far as I know, we needn’t subscribe the BuildCompletionEvent2 to {SEVERURL}/WorkItemTracking/v1.0/Integration.asmx manually, TFS 2010 will perform that automatically.
If you want to subscribe the BuildCompletionEvent2event type, you should provide the e-mail address or your custom Web method URL for the subscriber. To subscribing events in TFS 2010, please refer to this article: http://www.dotnetcurry.com/ShowArticle.aspx?ID=330.
And you can use the WCF to subscribe TFS 2010 Event Service, please refer to code snippet in Ewald’s blog: http://www.ewaldhofman.nl/post/2010/08/02/How-to-use-WCF-to-subscribe-to-the-TFS-2010-Event-Service-rolling-up-hours.aspxand Jakob’s reply in this post: http://social.msdn.microsoft.com/Forums/is/tfsbuild/thread/7f591bf0-8281-4161-bfc3-d2506ce00842.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
- Upravený John QiaoMicrosoft Contingent Staff, Moderator 12. března 2012 5:41
- Označen jako odpověď Jørgen Thyme 12. března 2012 9:22
-
12. března 2012 9:22
The subscription for BuildCompletionEvent ("/deliveryType Soap") works fine. My mistake was, that I believed that BuildCompletionEvent2 had replaced BuildCompletionEvent.
I can see, that the global lists gets updated again.
Thanks,
Jorgen