Quantcast
Channel: Shailendra Saxena
Viewing all articles
Browse latest Browse all 18

The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' In WCF

$
0
0
Hi,

I Created my WCF Service and it was working properly when i was making its service reference in my local machine.

But the problem came when I hosted this WCF Service in the Production Server.
When I was taking its reference in my local machine  I got following error.

The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8'  In WCF.

I had   <serviceMetadata httpGetEnabled="true"/>  in the web.config. but still I got the error.

I resolved this issues by adding another endpoint 'mex' as below in my web.config.


<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />

after adding above endpoint I got the service reference in my Client Application.

Please try If you face the similar problem.

PS: If this post helps you then please put your comments or mail me at smsaxena19@gmail.com


Happy Coding!

Shailendra Saxena

Viewing all articles
Browse latest Browse all 18

Trending Articles