you need to config web deploy on IIS.
or do a file publish to the app folder location defined in IIS.
note: because you defined the DNS name in localhost it will only work on that machine. did you use host name in the IIS app binding? otherwise just use localhost.
your localhost file implies that visual studio is publishing to an IIS server hosted on the same box.