How to Deploy an ASP.NET Project with Visual Studio and Web Deploy

What is Web Deploy

Web Deploy is a technology that allows you to deploy ASP.NET and .NET Core applications to our hosting easily. Instead of copying new files via FTP and deleting the old ones manually, with Web Deploy you synchronize your application files automatically—it takes care of all required operations under the hood.

You can use it directly from a developer’s machine or integrate it into your CI/CD pipeline for fully automated deployments:

Web Deploy is already active on all our ASP.NET hosting offerings—you do not need to enable anything separately.

How to configure Visual Studio to publish applications via Web Deploy

  1. Open our web control panel—you received a link to it and the credentials in the welcome email.
  2. In the control panel expand your website’s section: on the Dashboard tab you’ll see a “Web Deploy Publishing Settings” link. Click that link and you get a file in return called “<your-domain-name>.publishsettings”
    How to Deploy an ASP.NET Project with Visual Studio and Web Deploy
  3. Open publish settings for your project. For that, open the project in Visual Studio, and in the Solution Explorer open the context menu for your project—select “Publish…” there:
    How to Deploy an ASP.NET Project with Visual Studio and Web Deploy

    • Alternatively, you may use the “Build” section in the top menu:
      How to Deploy an ASP.NET Project with Visual Studio and Web Deploy
  4. In the Publish master, select “Import Profile”:
    How to Deploy an ASP.NET Project with Visual Studio and Web Deploy
  5. On the next page, specify the path to the .publishsettings file you downloaded earlier.
    How to Deploy an ASP.NET Project with Visual Studio and Web Deploy
  6. After that, the master will return you to the app to publish the page. Here, click the name of your publish profile and select the one with the “Web Deploy” suffix.
    How to Deploy an ASP.NET Project with Visual Studio and Web Deploy
    How to Deploy an ASP.NET Project with Visual Studio and Web Deploy
  7. Click “More actions” and select “Edit”:
    How to Deploy an ASP.NET Project with Visual Studio and Web Deploy
  8. On the “Connection” tab replace the server name with the domain name of the Plesk web panel, fill in and save your password:
    How to Deploy an ASP.NET Project with Visual Studio and Web Deploy
  9. In the end, your connection settings should look like this:
    How to Deploy an ASP.NET Project with Visual Studio and Web Deploy
  10. Now you are ready to publish. Hit the “Publish” button and enjoy!
    How to Deploy an ASP.NET Project with Visual Studio and Web Deploy

And that’s it: you’ve just published your app on a Fozzy server—check it out in the browser:

How to Deploy an ASP.NET Project with Visual Studio and Web Deploy

How to Deploy an ASP.NET Project with Visual Studio and Web Deploy

 

 

4.5/5 - (4 votes)
Share this article
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
In this article