ClickOnce的发布 - "该文件是“Default.htm”已存在在这个网站"在这个、该文件、存在、网站

2023-09-05 02:45:43 作者:半面泪妆眷卿三世

当我尝试(重新)发布我的ClickOnce应用程序,我得到这样的:

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

失败的文件'E:*路径* \ Default.htm的'复制到'\ *路* \的default.htm。无法'的default.htm添加到Web站点。该文件是Default.htm已存在在这个网站上。

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.

有三个文件具有相同的错误消息 - 为Default.htm,SETUP.EXE和我的应用程序的。应用文件

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.

推荐答案

您可能会想张贴此对UserVoice的(导致其要进入服务器的详细信息快),但在我看来,该文件已经存在。 2最明显的可能性是:

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)的网络服务器设置了该文件以只读

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

2)我想使用的ClickOnce部署每一个不同的目录。你记得撞版本号了?

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