HTTP Error 400. The request hostname is invalid
mistake,
Check the iis service of the service and know that it is because the corresponding domain name is also specified in the step of binding the host and port.
Solution:
The problem is solved by removing the bound host name and leaving it empty .