When you use the hostname feature in iis, you cant use localhost to access the site any more.
Instead use http://myhostname
and setup myhostname to point to 127.0.0.1
in your hosts file.
If you want to access the site via localhost, that implies you need to make a virtual directory, or "application" in iis.