2013-04-12 36 views
1

好吧,我討厭重新打開以前解決的案例,但我無法讓它工作。我有兩個端點偵聽來自TFS 2010事件服務的事件,一個使用Web服務(ASMX)構建,一個使用WCF(SVC)。第一個工作正常。第二個原因TFS提出這個錯誤團隊基金會服務不可用從服務器

HistoryId   : 4643911 
EndTime   : 4/12/2013 11:40:31 AM 
ResultMessage  : There were errors or warnings during notification delivery. 

        0/0 emails delivered. 
        1/2 soap notifications delivered. 
        1 errors. 
        0 warnings. 

        ------------------------------- 
        Notification not delivered. 

        Notification: WorkItemChangedEvent (DeliveryType: Soap; Address: http://[removed]/[removed]/Services/TfsListener.svc) 

        Exception: Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException: Team Foundation services are not available from server 
        http://[removed]/[removed]/Services/TfsListener.svc. 
        Technical information (for administrator): 
         HTTP code 404: Not Found ---> System.Net.WebException: The remote server returned an error: (404) Not Found. 
         at System.Net.HttpWebRequest.GetResponse() 
         at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.AsyncWebRequest.ExecRequest(Object obj) 
         --- End of inner exception stack trace --- 
         at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ProcessHttpResponse(HttpWebResponse response, Stream responseStream, WebException webException, 
        XmlReader& xmlResponseReader) 
         at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ExecWebServiceRequest(HttpWebRequest request, XmlWriter requestXml, String methodName, 
        HttpWebResponse& response) 
         at Microsoft.TeamFoundation.JobService.Extensions.Core.TeamFoundationNotificationClient.Notify(String eventXml, String tfsIdentityXml, Subscription subscription) 
         at Microsoft.TeamFoundation.JobService.Extensions.Core.NotificationJobExtension.SendSoapNotification(TeamFoundationRequestContext requestContext, 
        TeamFoundationNotification notification, TeamFoundationIdentityService identityService) 

JobSource   : d9ee5b23-4aa4-4768-a7fb-4db33ab686d0 
JobId    : a4804dcf-4bb6-4109-b61c-e59c2e8a9ff7 
QueueTime   : 4/12/2013 11:40:29 AM 
ExecutionStartTime : 4/12/2013 11:40:30 AM 
AgentId   : 917eb9ee-2622-455c-a6e6-a1c96eeb1666 
Result    : PartiallySucceeded 

我按照每一個建議,我可以找到,包括404 Error when TFS 2010 Sends SOAP Alert to a WCF 4.0 Servicehttp://www.ewaldhofman.nl/post/2010/08/02/How-to-use-WCF-to-subscribe-to-the-TFS-2010-Event-Service-rolling-up-hours.aspx

還有其他想法嗎?

回答

0

好的,得到它的工作。以下是從一些網站有缺失:

<service behaviorConfiguration="EventServiceBehavior" name="FullSvcClassName"> 
    <endpoint address="" binding="wsHttpBinding" bindingConfiguration="EventServiceBinding" 
      contract="FullSvcInterfaceName" /> 
</service> 

如果服務的名稱將不匹配您的全類名(包括命名空間),你會得到一個basicHttpBinding的,它不會工作。 如果你把任何東西放在端點地址中,就像我認爲我應該提供的相對地址一樣,它會被附加到URI的地址並失敗。

我用WcfTestClient.exe和Fiddler2來追蹤它。請享用!