问题描述
当我尝试(重新)发布我的点击应用程序时,我得到这个:
When I try to (re)publish my clickonce app, I am getting this:
无法复制文件'E:* path * \default.htm '到'\ 路径 \default.htm'。无法将default.htm添加到网站。文件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)Web服务器将文件设置为只读。
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?
这篇关于Clickonce发布 - “该文件”default.htm“已经存在于本网站”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!