Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

clickonce ftp publishing denied for policy reasons

Tags:

I can't get Visual Studio 2017 publish a Winforms application through ClickOnce to my new ftp server with IIS 10/Windows 2016. Both anonymous and basic authentications are enabled in the server, authorisation is read+write for all users.

I can post a file successfully from a Filezilla client, but publishing to same folder with Visual Studio throws next error:

Failed to connect to 'ftp://ftp.myftpserver.com/myfolder/' with the following error: Unable to create the Web site 'ftp://ftp.myftpserver.com/myfolder'. Request denied for policy reasons.

Any suggestions?

like image 560
Matias Masso Avatar asked Apr 08 '17 17:04

Matias Masso


1 Answers

If you require to use FTPS I got it to work by explicitly stating ftps://IPOFFTPORDOMAIN in Server: field of Publish window Profile. I found this tutorial from one of the hosting providers: https://www.a2hosting.com/kb/a2-hosting-products/windows-hosting/publish-a-site-from-visual-studio-using-ftps

like image 161
Dmitri K Avatar answered Sep 23 '22 10:09

Dmitri K