Clickonce publish - “The file 'default.htm' already exists in this Web site”

时间秒杀一切 提交于 2019-12-13 14:01:26

问题


When I try to (re)publish my clickonce app, I am getting this:

Failed to copy file 'E:*path*\default.htm' to '\path\default.htm'. Unable to add 'default.htm' to the Web site. The file 'default.htm' already exists in this Web site.

There are three files with the same error message - default.htm, setup.exe and my app's .application file.

What's going on? I've published this before, many times - although it's been a few months since the last publish.


回答1:


You might wanna post this on UserVoice (cause its going to get into server details quickly) but it seems to me that the file already exists. 2 most obvious possibilities are:

1) The web server has set the file to read-only.

2) I think ClickOnce uses a different directory per deployment. Did you remember to bump the version number up?



来源:https://stackoverflow.com/questions/952144/clickonce-publish-the-file-default-htm-already-exists-in-this-web-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!