I got this error when browsing a net.msmq service.
When I do IISRESET, it was momentarily giving
Invalid URI: The hostname could not be parsed
The bindings information on the website was
net.msmq – *
Go to IIS, go to the website of the webapp.
Rightclick –> edit bindings
Make sure net.msmq protocol’s binding information is set to localhost