Here’s a common issue that a Visual Studio developer might hit when trying to publish a project created in Visual Studio 2015, 2017 and so on using ClickOnce, FTP or other publishing options:
The components for communicating with FTP servers are not installed.
This is a known bug that originates from VS2010 and is still affecting all VS instance, from VS2010 to VS2017 throughout the years.
To get rid of it, you can try one of the following workarounds:
- Close and restart Visual Studio.
- Close Visual Studio, open a different project, publish it, then reload your original project.
- Reinstall the VC12 redistributable (32-bit version), as suggested here.
- Navigate to the Visual Studio installation folder, such as C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE (for VS2015), and run the following command: devenv /resetuserdata
That’s about it: I hope that this post will help anyone who’s stuck with this nasty issue.