The content type application/xml;charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8)

后端 未结 8 1277
醉话见心
醉话见心 2020-11-30 10:12

I trying to consume a WCF web service using stand alone application. I am able to view this service using Internet Explorer also able to view in Visual studio service refere

8条回答
  •  星月不相逢
    2020-11-30 10:43

    When I ran into this error, I spent hours trying to find a solution.

    My issue was that when I went to save the file I had accidentally hit the key stroke "G" in the web.config. I had a straggler Character just sittings outside, so the web.config did not know how to interpret the improperly formatted data.

    Hope this helps.

提交回复
热议问题