Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

System.InvalidOperationException: Client found response content type of '', but expected 'text/xml'.

$
0
0

Hi All,

I encountered an issue regarding invoke an ASMX web service which always return empty content to me.

The background is here.

The ASMX web service is OK. I can confirm it. This web service is hosted in IIS 5 or 6 in Windows Server 2003. It works well.

Recently, I moved this web service to IIS 10 on Windows Server 2016. I have installed related .NET Framework 3.5 and 4.6 features. Such as HTTP Activation/Non-HTTP Activation/TCP Activation/TCP Port Sharing.

I mapped the web service website to multiple URL. For example, we can access it throughhttp://ws.xxxx.com/webservice/xxx.asmx

http://wsxxx/webservice/xxx.asxm

https://ws.xxx.com/webservice/xxx.asmx

The strange issue is that I can access the web service through http://ws.xxxx.com/webservice/xxx.asmx. When I tested them via web browser.  It return the correct response with text/xml. But for the others, it returned an empty page.

In my view, it’s a configuration issue related IIS. But I didn’t figure out. Could you please help to take a look at this issue? And give your suggestions to me.

Thank YOU.


Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>