How to publish a site from Visual Studio using FTPS
This article describes how to publish a website from Visual Studio using FTPS. FTPS is a secure method of transferring files using the FTP protocol.
The following procedures are based on Visual Studio 2017. There may be minor differences between the instructions in this article and the steps required for other versions of Visual Studio.
Step 1: Obtain your FTP login credentials
Before you can publish files using FTPS, you must know the correct login credentials. To obtain the credentials for your account, follow these steps:
- Log in to the Customer Portal.
If you do not know how to log in to the Customer Portal, please see this article
- On the MY SERVICES:
- To the right of the destination hosting package, click .
- The Hosting Information tab displays the login credentials for the account. Make a note of your username and password and server name.
Step 2: Configure Visual Studio
To configure Visual Studio for FTPS publishing, follow these steps:
- In Visual Studio, on the project_name represents the name of the project.
menu, click , where
- On the Publish page, click the icon labeled IIS, FTP, etc.
- In the Publish dialog box, click the Connection tab if it is not already selected.
- In the Publish Method list box, select FTP:
In the Server text box, type the protocol, server domain name, and port:
All versions of Visual Studio assume port 21 is the default port. You must specify port 990 in the Server text box for a successful connection.
In the Site Path text box, type the file location where the site files should be stored. For the primary domain of an account, the path is /httpdocs but it could be any path that you have set up:
Select the Passive mode check box if it is not already selected:
In the Username text box, type the FTP username:
Remember that you use a modified FTP username to log in to the Plesk FTP server. For example, if the FTP user in Plesk is kelly, and your account is on server a2ws3.a2hosting.com, then the FTP username is mi3-wss3\kelly.
In the Password text box, type the password for the FTP user:
Optionally, select the Save password check box to save the password for future publishing:
Optionally, in the Destination URL text box, type the URL for the uploaded site:
- Click green checkmark appears when validation is successful.. A
- Click .
- On the Settings tab, select any additional options that you want. None of the settings are required to continue.
- After making any desired settings, click .
The FTPS upload begins immediately, and you can view progress in the Output panel.
If you did not select the Save password option during configuration, you are prompted to type the password at connection time.