2017-03-10 150 views
0

我試圖通過sftp將ClickOnce應用程序發佈到網絡服務器(使用Visual Studio 2015.服務器是Centos 6.7)。使用發佈嚮導無法發佈ClickOnce應用程序

我在發佈嚮導最後設置:

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/ 

當我公佈:(輸出)

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 ========== 

沒有在/home/www/sample/web/desktop/加入。但它說發佈成功。

我該怎麼辦?

回答

0

它從

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

竟然被添加的文件部署/root/home/www/sample/web/desktop/,而不是/home/www/sample/web/desktop/

那麼我改變發佈文件夾的位置

sftp://10.1.0.88/../home/www/ecr/web/desktop/ 
相關問題