Can't publish a ClickOnce Application using the Publish Wizard

梦想的初衷 提交于 2019-12-25 08:59:45

问题


I' trying to publish ClickOnce Application to a webserver through sftp (Using Visual Studio 2015. The server is Centos 6.7).

My final config in the Publish Wizard:

The application will be published to:
sftp://10.1.0.88/home/www/sample/web/desktop/

Users will launch this application from:
http://sample.example.com/desktop/

When I published: (Output)

Connecting to 'sftp://10.1.0.88/home/www/sample/web/desktop/'...
Publishing files...
Publish success.
Warning: Unable to view published application at http://sample.example.com/desktop/publish.htm.
http://sample.example.com/desktop/publish.htm
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========

Nothing was added in /home/www/sample/web/desktop/. But it says Publish success.

What should I do?


回答1:


It turned out the deployment files were added to /root/home/www/sample/web/desktop/instead of /home/www/sample/web/desktop/

So I change publishing folder location from

sftp://10.1.0.88/home/www/sample/web/desktop/

to

sftp://10.1.0.88/../home/www/ecr/web/desktop/


来源:https://stackoverflow.com/questions/42709645/cant-publish-a-clickonce-application-using-the-publish-wizard

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