blazor 部署iis_如何在Internet信息服务(IIS)上部署Blazor应用程序

本文详细介绍了如何在Windows 10上使用IIS 10部署ASP.NET Core托管的Blazor应用。首先需要安装IIS、URL重写模块,接着安装.NET Core托管捆绑包。然后通过Visual Studio 2017发布Blazor应用,配置IIS,包括创建网站、设置应用程序池,最后配置DNS主机和解决常见托管问题。
摘要由CSDN通过智能技术生成

blazor 部署iis

介绍 (Introduction)

In this article, we will learn how to deploy an ASP.NET Core hosted Blazor application with the help of IIS 10 on a Windows 10 machine. We will be using Visual Studio 2017 to publish the app and SQL Server 2014 to handle DB operations. We will also troubleshoot some of the common hosting issues for a Blazor application.

在本文中,我们将学习如何在Windows 10计算机上借助IIS 10部署ASP.NET Core托管的Blazor应用程序。 我们将使用Visual Studio 2017来发布应用程序,并使用SQL Server 2014来处理数据库操作。 我们还将解决Blazor应用程序的一些常见托管问题。

先决条件 (Prerequisites)

  • Install IIS in your machine

    在您的机器上安装IIS
  • Install URL Rewrite module from here

    此处安装URL重写模块

Please refer to my previous article, How to create a cascading DropDownList in Blazor using EF Core, to create the application that we will be deploying in this tutorial.

请参考我以前的文章, 如何使用EF Core在Blazor中创建级联的DropDownList ,以创建将在本教程中部署的应用程序。

安装.NET Core托管捆绑 (Installing .NET Core hosting bundle)

Since we are going to deploy an ASP.NET Core hosted Blazor application, the first step is to install the .NET Core hosting bundle in our machine.

由于我们将部署ASP.NET Core托管的Blazor应用程序,因此第一步是在计算机中安装.NET Core托管软件包。

Follow the below steps to download the .NET Core hosting bundle:

请按照以下步骤下载.NET Core托管捆绑包:

第1步 (Step 1)

Open https://www.microsoft.com/net/download/all

打开https://www.microsoft.com/net/download/all

第2步 (Step 2)

Select the latest non-preview .NET Core runtime from the list. For this tutorial, we will select .NET Core Runtime 2.0.7.

从列表中选择最新的非预览版.NET Core运行时。 对于本教程,我们将选择.NET Core Runtime 2.0.7。

Refer to the image below:

请参考下图:

第三步 (Step 3)

On the .NET Core runtime download page, scroll down to Windows s

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值