Last post Aug 03, 2017 09:15 AM by Jimmy Yang - MSFT
Jul 27, 2017 10:38 AM|Jimmy Yang - MSFT|LINK
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 through
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.
Jul 27, 2017 05:10 PM|kaushalparik27|LINK
Probably there might be some error coming back from your service (yellow screen error html instead of xml) for which the client side app is complaining about. Double check service side implementation. Here are some related thread on similar error:
Jul 28, 2017 06:18 AM|Edward Z|LINK
>> 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.
Could you share us how you configure website to multiple URL?
Per to above description, it seems the second and third url is not valid to web site.
I suggest you try to check below link to enable sub-domain request.
# Wildcard Host Header Support
Aug 03, 2017 09:15 AM|Jimmy Yang - MSFT|LINK
Thanks for your response.
@Edward, you are right. the second and third URL are not valid to web site.
I have fixed this issue now. my team member mapped the second and third URL to a obsoleted web site which is same with the correct one. But the obsoleted one has code issue. In the end, I mapped the remind URLs to the correct web site. they work now.
Have a nice day~