WCF endpoint not found

前端 未结 2 1449
时光取名叫无心
时光取名叫无心 2021-01-13 08:47

I\'m following a tutorial in a book to implement push notifications for Windows Phone. This is the markup of the service:

<%@ ServiceHost Language=\"C#\"          


        
2条回答
  •  逝去的感伤
    2021-01-13 09:06

    For those who absently implement the method in Service.svc that its definition is absent in IService causes the same exception.

    This is forgotten

    [OperationContract]
     string CheckHMAC(string hMac);
    

    But implemented

    [WebInvoke(Method = "GET", UriTemplate = "/CheckHMAC/{hMac}")]
    public string CheckHMAC(string hMac)
    {//}
    

提交回复
热议问题