wcf binding - System.ServiceModel.ProtocolException -
i have wcf service deployed on windows server 2003 service pack2. wcf services has been working since 1 year. in recent days ,it throwing bellow exception. looked around ton , can’t find anything. suggesting install wcf non-http activation components. using iis6,so coud not find non-http activation on server. worries how working before.
system.servicemodel.protocolexception: content type text/html; charset=utf-8 of response message not match content type of binding (text/xml; charset=utf-8). if using custom encoder, sure iscontenttypesupported method implemented properly. first 1024 bytes of response were: '<html><head><link rel="alternate" type="text/xml" href="http://server.edu/mysign/services/mysign.svc?disco....etc
below points may helpful- 1. if you're hosting on iis, you'll want remove section wcf service's web.config file.
2. can turn on wcf tracing @ service side , client-side see whether can capture more detailed error information @ underlying channel level.
3. may getting error page html in response. http://www.vistax64.com/indigo/468-content-type-text-html-response-message-does-not-match-content-type-binding-text-xml-charset-utf-8-a.html
Comments
Post a Comment