ClickOnce does not like "localhost", but you can get around this.
If you set the location of the publication folder, follow these steps:
C: \ Inetpub \ Wwwroot \ SampleApplication \
and installation folder url:
http: // chrish / SampleApplication /
(where "chrish" is the network name of your computer), you can publish it locally.
source share