The Christmas story goes like this. When I run my web application I got the error message as below.
System.InvalidOperationException was unhandled by user code
Message=Client found response content type of ‘text/html; charset=utf-8’, but expected ‘text/xml’.
The request failed with the error message:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”…..
I chose the Basic Setting for my web service application then set the Application Pool to DefaultAppPool.
My problem solved. Try this if you hit the same problem .