How to Publish Using Web Deploy with Plesk Control Panel In Visual Studio?


Basically, we use FTP to upload our files to our server. Microsoft launched WebDeploy feature to help us to upload our application easily. Web Deploy is a useful client-server tool that is used to sync configurations and content to IIS (Internet Information Services). Note that, it acts as an extensible function of Visual Studio tapped by Microsoft to develop serial computer programs.

In this article, we will show you how to deploy your site using WebDeploy tools via Plesk control panel. Ok, here we go and read full article for further information.

NOTE: If you find this article useful, please kindly click button share.

Step 1 – Activate Web Deploy Feature via Plesk Control Panel

To start with, you should enable “Web Deploy Publishing” function by logging into your control panel. Taking the mostly-used Plesk control panel as an example here, you can simply log onto your hosting account with unique username and password. Upon entering, there will be a list of configuration options, like “Websites and Domains”, “Email”, “Resource Usage”, etc.

To activate your Web Deploy settings on Plesk Control Panel, please click “Hosting Setting” and then tick “Web Deploy Publishing”

web-deploy-1

Once you have tick the setting above, then find “Web Deploy Publishing Setting” and you can download the file for the details.

web-deploy-2

Step 2 – Open Your Visual Studio

The next step is to login to your Visual Studio application so as to open and edit your publishing project. Right-click this project within the left-side “Solution Explorer” menu. As is displayed, there is a “Publish” option in this drop-down list, and you should make a hit on this option. By the way, it is possible to re-configure your website files from here, including “Content”, “Results”, “Scripts”, etc.

visual-studio-1

Step 3 – Publish Your WebSite

Once clicked, there will a pop-up “Publish Web” window where you will be shown with multiple options that include “Profile”, “Connection”, “Settings” and “Preview.” Inside the “Profile” tab, you can import your publish profile by clicking the “Import” option. Also, it is possible to use “Custom” settings. If you have the need to import your downloaded publish profile, you will have to click this “Browse” button to select it from the local computer.

web-deloy-3

Please choose the “Web Deploy” method here. Given that you’ve imported a publish profile in the last step, the rest of the setting fields will be filled in automatically as below. If not, you would have to input the following details:

Server URL– is where to deploy your application to a hosting provider, the IIS on a local computer or internal server.

Site Name – is where to fill in the name of your IIS web site and application, such as windowswebhostingreview.com and windowswebhostingreview.com/MyApplication.

User Name & Password – is where to enter your credentials for an account so as to grant authority to perform certain deployment tasks.

Once done all those settings, simply click this “Validate Connection” button to get connected to a server. If there is a “Certificate Error” pop-up, you will need to check whether or not the publishing URL is correct. If you have problem in publishing, please kindly contact your ASP.NET Hosting provider. If you need Web Deploy feature, you can find web deploy hosting recommendation here or best asp.net hosting provider that support Web Deploy.

Step 4 – Configure Your Settings

In the next “Settings” tab, you should choose the “Release” publish method in the drop-down “Configuration” list. Beware that, the “Debug” method can be chosen only if you want to deploy to a test environment. Besides that, you also need to define the “File Publish” Options. Each option is quite self-explanatory, and you can check the correspondent box as you like.

web-deploy-4

Step 5 – Done and Publish Your Project

Once you have completed above steps, then you can preview your settings again and then you can publish your files. It takes a while to accomplish the whole publishing process, and you can check whether deployment is successful in the “Output” window of Visual Studio. Alternatively, you can choose to go back to the Plesk Control Panel and navigate to “File Manager” > “YourSiteURL.”

file-manager

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s