Error: Failed to connect while Publishing Click Once Application Wpf

Error: Failed to connect while Publishing Click Once Application Wpf

我在发布 WPF 应用程序时遇到错误。我在桌面上发布 安装文件夹和发布文件夹的位置相同。 \ 错误说---

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.

我必须将路径从本地主机更改为 c:/ 然后它成功构建。