4
votes

enter image description hereI 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
do you really have any folder at that location ? - DeshDeep Singh
yes i created a folder on desktop as deploy.... - Anoop Mishra
it is really difficult to understand like this please provide some code - DeshDeep Singh
I wouldn't expect \localhost\ to mean the C:/ drive. - Mike Eason
when i paste the path of that folder it automatically set as the localhost, - Anoop Mishra

1 Answers

5
votes

I have to change the path from local host to c:/ then it successfully build.