I have created a restful wcf service there are GET methods already exist. But when in interface I created post method like
[OperationContract]
[WebInvoke(Method = "POST",
ResponseFormat = WebMessageFormat.Json,
RequestFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "createDemo")]
int createDemo(ObjectInfo obj);
I consumed this service in another asp.net website project, while updating service over there i get the "HRESULT E_FAIL has been returned from a call to a COM component" error. Now if I comment this post method from service interface. Service reference gets updated. I googled for the same but i didn't understand what is causing the issue?