Michael

Michael

  • 1.5k
  • 238
  • 19k

WCF NetTcp Binding

Mar 21 2018 10:23 AM
Hi,
 
I am trying to implement a WCF nettcp binding service and when I debug to test the code with WCF test client every time when I get the following error:
 
"Error: Cannot obtain Metadata from '' If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata Exchange Error URI: '' Metadata contains a reference that cannot be resolved: ''. The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.HTTP GET Error URI: '' The document at the url '' was not recognized as a known document type.The error message from each known type may help you fix the problem:- Report from 'XML Schema' is 'Root element is missing.'.- Report from 'DISCO Document' is 'Root element is missing.'.- Report from 'WSDL Document' is 'There is an error in XML document (0, 0).'. - Root element is missing."
 
If anyone has any idea what I should do to overstep this error I would really appreciate it. I tried many and different solutions after hours of research without success.
 
Thank you.