How to publish a site from Visual Studio using Web Deploy

This article describes how to publish a website from Visual Studio using Web Deploy.

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 Plesk login credentials

Before you can publish a website using Web deploy, you must know the correct login credentials. To obtain the credentials for your account, follow these steps:

  1. Log in to the Customer Portal.
    If you do not know how to log in to the Customer Portal, please see this article.
  2. On the Services menu, click MY SERVICES:

  3. To the right of the destination hosting package, click Manage.
  4. The Hosting Information tab displays the Plesk 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 Web Deploy publishing, follow these steps:

  1. In Visual Studio, on the Build menu, click Publish project_name, where project_name represents the name of the project.

    Build meu

  2. On the Publish page, click the icon labeled IIS, FTP, etc.

    IIS, FTP, etc. tab

  3. Click Publish.
  4. In the Publish dialog box, click the Connection tab if it is not already selected.
  5. In the Publish Method list box, select Web Deploy:

    Text box showing selection of FTP option.

  6. In the Server text box, type the server name:

    Text box showing server text box contents

  7. In the Site name text box, type the domain name of the site.

    Site name text box

  8. In the Username text box, type the Plesk username:

    Pleask user name entered in the user name textbox

  9. In the Password text box, type the password for the Plesk user:

    Password typed in the password text box

  10. Optionally, select the Save password check box to save the password for future publishing:

    Checkbox showing save password selected

  11. In the Destination URL text box, type the URL for the uploaded site:

    Text box showing sample destination URL -

  12. Click Validate Connection. A green checkmark appears when validation is successful.
  13. Click Next.
  14. On the Settings tab, select any additional options that you want. None of the settings are required to continue.
  15. After making any desired settings, click Save.
  16. The Web Deploy 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.

Article Details

  • Operating System: Windows Hosting
  • Product: Windows Reseller Hosting
  • Level: Intermediate

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.