Introduction

In this article, We will deploy a Blazor application in IIS on a Windows OS. To deploy blazor application I will use Visual Studio 2019.

Prerequisites

  • Pre Installed IIS server.

  • Visual studio 2019.

  • .NET Core hosting bundle
  • ASP.NET Core Runtime

IF you don’t have the .NET Core hosting bundle and ASP.NET Core Runtime follow the below steps to install.

  • Open this URL.
  • Download and Install the Runtime and Hosting bundle as per your version.

Open our blazor application in Visual Studio 2019, right-click on a project from solution explorer and select “Publish..” option.

Click on Publish > Start > Folder > choose a folder path and click on the “Create Profile” button.

Click on the “Publish” button.

Now, Open IIS.

Right Click on “SItes” > “Add Website…”.

Set all details like “Site Name”, “Physical path”, “IP address” etc, and click on the “OK” button.

Done!, now right-click on Browse *.85 (Http) and you can see your hosted application inside the browser.

Recommend articles which you should read once.

  1. CRUD Using Blazor, Entity Framework Core And Dapper
  2. Sorting Table In Blazor
  3. Pagination In Blazor
  4. Searching Feature In Blazor
  5. Visual Studio Blazor Template With Dapper And .NET Core 3.0

hope you guys found something useful. Please give your valuable feedback/comments/questions about this article. Please let me know how you like and understand this article and how I could improve it.

Footer Logo

Subscribe

Select Categories