Blazor

How do I deploy a Blazor application in IIS?

How do I deploy a Blazor application in IIS?

The Blazor application can be deployed to IIS using Visual Studio or you can also configure manually. Find the steps to deploy the Blazor application.

Deploy an app from Visual Studio to IIS

  1. Install the .NET Core Runtime Hosting Bundle in your device.
  2. Create a Blazor application
  3. Publish the application using context menu from the Solution Explorer in Visual StudioPublish
  4. Click Publish. If there is no error, your application will be published successfully.

Manual Deployment to IIS

You can publish the Blazor application using “dotnet publish” command. Please refer to the document dotnet publish for additional commands.

IIS config

  1. Open the IIS.
  2. Right click the defaultApp site and create a new website.
  3. Insert the site name and physical path (published folder path).Add Physical Path
  4. Click Ok .
  5. Now, config the site in ApplicationPool, and you can browse the site.
Nitin Pandit

With over 10 years of vast development experience with different technologies, Nitin Pandit is Microsoft certified Most Valued Professional (Microsoft MVP) with a rich skillset that includes developing and managing IT/Web-based applications in different technologies, such as – C#.NET, ADO.NET, LINQ to SQL, WCF, and ASP.NET 2.0/3.x/4.0, WCF, WPF, MVC 5.0 (Razor), and Silverlight, along with client-side programming techniques, like jQuery and AngularJS. Nitin possesses a Master’s degree in Computer Science and has been actively contributing to the development community for its betterment. He has written more than 100 blogs/articles and 3 eBooks on different technologies to help improve the knowledge of young technology professionals. He has trained more than one lakh students and professionals, as a speaker in workshops and AppFests, conducted in more than 25 universities in North India.