Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to publish to IIS in Asp.Net Core

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Asp.Net Core in how to release to IIS, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

1. Asp.Net Core released to IIS

1. In many cases, IIS has been installed on the WindowsServer server to listen on port 80, so the host of the Asp.Net Core application cannot listen on port 80

two。 That is, when the IIS service is enabled on the Widnows system, you need to install NET Core Windows Server Hosting, which includes the. Net Core runtime and Widnows Server Hosting in the official installation package

3.Asp.Net Core is published under IIS and requires the support of .NET Core Windows Server Hosting.

Official download address: https://www.microsoft.com/net/download/core#/runtime

Install the .NET Core Windows Server Hosting package on the server. This package will install the .NET core runtime, the .NET core library and the ASP.NET core module.

This module creates a reverse proxy between the IIS and the Kestrel server.

Restart the server or execute net stop was / y, and then start net start w3svc from the command line to retrieve the changes to the system PATH.

Installation screenshot:

2. Release Asp.Net Core application steps under IIS

1. After installing IIS and Windows Server Hosing, restart the IIS service and check for "AspNetCoreModule" in the IIS module

two。 Create a website, select the Asp.Net Core release directory, and set the IIS application pool to "No managed Code"

3. Bind domain name port after setting, check whether there is "aspNetCore" in the handler mapping of the current site.

4. Browser access test:

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 286

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report