How to Deploy Visual Studio 2015 Web Application Using Web Deploy Method?

Follow below instructions to get started with publishing your Visual Studio 2015 Web Application to server via Web Deploy method.

 

  1. Launch Visual Studio 2015 and open your web application.

  2. Now, we will change the configuration setting of web application to release mode. Visual Studio offers separate release and debug configuration options for applications. The debug configuration is compiled with full symbolic debug information with no optimization, whereas release configuration does not have symbolic debug information and is fully optimized.

    A Debug configuration supports the debugging of applications and a Release configuration builds a version of the web application which is ready to be deployed on server. To set your application on Release mode, follow the below step.

  3. Click on Build menu and then Configuration Manager.

    Configuration Manager

  4. At Configuration Manager dialog box, select Release option from Active Solution Configuration drop down then Close the dialog box.

    Solution Configuration

  5. To deploy your web application, select your web application from Solution Exporer.

    Select Web Application


  6. Right click on web application name and then click on Publish option. You will also see Publish option under Build navigation menu.

    Publish Option

  7. On the next screen, select Publish Target as Custom.

    Select Publish Target as Custom

  8. Give your desired name to new custom profile.

    Give Profile A Name

  9. On the Publish Web dialog box, specify following details.

    1. Select Publish method to Web Deploy from the drop down.

      Connection Validate

    2. As per following web hosting type, you need to specify the web deploy service URL under Server field.

      For Windows Server 2008 Customers:
      https://www.accu15.com:8172/msdeploy.axd

      For Windows Server 2012 Customers:
      https://www.accu17.com:8172/msdeploy.axd

      For Windows Server 2016 Customers:
      https://www.accu20.com:8172/msdeploy.axd

      For Windows VPS Customers:
      Configure your VPS for Web deploy

    3. Under Site name option, specify name of your website.

    4. Under Username option, specify the username who has necessary permissions (IIS Manager Permissions) on the web server for web deployment.

    5. Specify the Password of that username. If you want to save your credentials for future use, check the Save password checkbox.

    6. Under Destination URL, specify the Fully Qualified Domain Name (FQDN) of your website.


  10. Once necessary details are specified, click on Validate Connection button to verify the connection. Check Allow Untrusted Certificate checkbox when it prompts. You will see green tick mark, if the connection could be established successfully.

  11. Click on Publish button to start deploying your web application to the server. 

  • 1 Users Found This Useful

Was this answer helpful?

Related Articles

AccuWebHosting Offers PHP 7 Hosting

If you are following recent PHP developments, you must be aware of the latest PHP version (PHP 7)...

Does email manager add user through control panel or SmarterMail?

You can add user through WebsitePanel control panel as well as SmarterMail. However, it is...

Which email server do you offer in Windows Hosting?

Windows Shared Plans In Windows Shared Hosting, we provide SmarterMail Enterprise Edition as...

Can I upgrade my shared hosting plan to VPS hosting?

Shared hosting plan cannot be upgraded to VPS hosting directly. You can purchase a separate VPS...

Do you allow email forwarding on shared hosting accounts?

We don't allow forwarding of emails to GMail, AOL, Yahoo, Comcast, ATT (and all their other...