Introduction to the running environment and download and installation of ASP.NET Core applications on the IIS server (super detailed)

foreword

To successfully run ASP.NET Core applications on IIS, we need the ASP.NET Core runtime and the ASP.NET Core Module. And here we only need to download the ASP.NET Core Hosting Bundle, why?

If you want to know, you can see the introduction at the end of the article.

1. Download and install ASP.NET Core Hosting Bundle

The ASP.NET Core runtime enables you to run existing web/server applications. On Windows, we recommend installing the hosting bundle, which includes .NET runtime and IIS support.

1. Open the following link in the browser: .NET Download (Linux, macOS and Windows) , you can see the following page

 2. Select the required version, here I choose .NET6.0, click to see the following page,

Under asp.net core runtime on the right, select Hosting Bundle to download and install

 Finally, after downloading, double-click to install, and the ASP.NET Core Hosting Bundle is installed successfully.

2. Check whether ASP.NET Core Module 2 is installed after installation of ASP.NET Core Hosting Bundle

1. Open the IIS Manager and check whether the "ASP.NET Core" application pool is included in the "Application Pool".

2. Right-click the "Browse Website" site, select "Modules", and check whether the module named "AspNetCoreModuleV2" is included.

 

Three, set the IIS application thread pool

1. Open the IIS Manager, right-click the application pool, and select "Advanced Settings".

 2. Find that the ".NET CLR Version" property is set to "No Managed Code". This is because the ASP.NET Core application is based on .NET Core and does not require managed code support.

3. Find the "Enable 32-bit application" property and set it to "False" to apply to the 64-bit version of .NET Core.

 4. Find the "Managed Pipeline Mode" property and set it to Integrated (integrated) to support ASP.NET Core applications using the managed mode features.

 

4. Briefly introduce ASP.NET Core Hosting Bundle

ASP.NET Core Hosting Bundle is an official package that contains all the components needed to write and run ASP.NET Core applications on Windows. It includes the following components:

.NET Core Runtime: .NET Core Runtime is a key component for running ASP.NET Core applications.

.NET Core Library: .NET Core Library is the core library for writing ASP.NET Core applications using .NET Core.

ASP.NET Core Runtime: ASP.NET Core Runtime provides the runtime support required by ASP.NET Core applications.

ASP.NET Core Library: The ASP.NET Core Library provides the core libraries required by ASP.NET Core applications.

.NET Core SDK: The .NET Core SDK provides all the tools needed to develop ASP.NET Core applications on Windows.

ASP.NET Core Module: The ASP.NET Core Module is a component required to run ASP.NET Core applications on IIS.

.NET Core Runtime Official Edition and Pioneer Edition: Multiple versions of Runtime are available for download and use

Installing ASP.NET Core Hosting Bundle can install and configure all runtimes and libraries at one time, allowing developers to develop and deploy ASP.NET Core applications more efficiently and conveniently.

5. Thanks

Thank you for your reading and support, and I sincerely hope that this article can help you with the problems you encounter! ! !

Guess you like

Origin blog.csdn.net/Leewayah/article/details/131248441