问题
I got an error while publishing my WPF application. I am publishing on the desktop and the location of the installation folder and the publish folder is the same. \ Error says---
Error 1 Failed to connect to '\localhost\Users\Administrator\Desktop\deploy\' with the following error: Unable to create the Web site '\localhost\Users\Administrator\Desktop\deploy'. The path '\localhost\Users\Administrator\Desktop\deploy' does not exist or you do not have access. The specified path is invalid.
回答1:
I have to change the path from local host to c:/ then it successfully build.
来源:https://stackoverflow.com/questions/31782139/error-failed-to-connect-while-publishing-click-once-application-wpf