I have this issue and so far it helps.
Nope, nothing to do with Haskell.
This admittedly boring post is about two specific problems with IIS 7.5 and WCF which wasted so much of my time that I thought it would be worth to document them.
If you have a WCF service hosted as an ASP.NET application in IIS, you may encounter the following exception on the client side:
System.ServiceModel.ProtocolException: The content type text/html of the response message does not match the content type of the binding (application/x-gzip). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 75 bytes of the response were: ‘The page cannot be displayed because an internal server error has occurred.’.
—> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
— End of inner exception stack trace —
The system I’m maintaining has gzip-binary-encoded data over HTTP, so the first…
View original post 743 more words