Wednesday, 21 August 2013

WCF service returning HTML instead of response

WCF service returning HTML instead of response

I created a WCF service which connects some websites. But when I try to
consume it, I get this error. What can cause it? Funny thing is, I
duplicated WCF service from another working one so I'm confused.
The content type text/html; charset=utf-8 of the response message does not
match the content type of the binding (text/xml; charset=utf-8). If using
a custom encoder, be sure that the IsContentTypeSupported method is
implemented properly. The first 1024 bytes of the response were: '
<!DOCTYPE html>
<html>
<head>
<title>Runtime Error</title>
<meta name="viewport" content="width=device-width" />
...

No comments:

Post a Comment