IIS deployment .net core project

  1, the installation module AspNetCoreModule

  Times are different and ASP.NET, ASP.NET Core is no longer the IIS worker process (w3wp.exe) hosting, but the use of self-hosted Web server (Kestrel) running in the middle of the most important roles is to AspNetCoreModule, it is one of the IIS module, based on this module, we can use IIS and ASP.NET as ASP.NET Core operating site.

  First, we determine whether the principle of AspNetCoreModule module, open the IIS = "Click on a site =" modules:

  

  I am here to show no installation:

  

 

  AspNetCoreModule Download: https://dotnet.microsoft.com/download/dotnet-core

  This address is .net core SDK download address, select your project operating environment SDK, I was core2.2:

  

  

 

   We downloaded the latest, can be installed after the download is complete:

  

 

  After installation, restart IIS (win + r, and then enter cmd, open a command line, type iisreset, this command may require administrator privileges, it may be necessary to use administrator rights to open the cmd command line), and then view the module:

   

 

  2, deployment .net core project

  Here to .net core MVC project, for example, to create a site:

  

  Then modify Demo application pool:

  

 

   Here it means has been configured, open your browser and enter: http: // localhost: 8080 / can access to the

  

Guess you like

Origin www.cnblogs.com/shanfeng1000/p/12337898.html