Posts

Showing posts from May, 2015

My Experience with WCF

So this time I came across this issue with WCF service which was hosted on IIS. The error that I was getting was something like this, System.InvalidOperationException: General Error “http://mypublicwebserviceurl” ---> System.InvalidOperationException: The document at the Url ‘http://mypublicwebserviceurl’ was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from ‘http://mypublicwebserviceurl’ is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'DISCO Document' is 'There was an error downloading ‘http://myinternalurl’.   - The remote name could not be resolved: 'hostname' - Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'WSDL Document' is 'The document format is not recognized (the conte...