There are many ASP. NET core on the Widows IIS deployment of the article, in the deployment to the server encountered some problems, here I no longer explain the principle (copy), just write down some key links, want to see the principle of the students please refer to the official website , this article as retained.
Steps:
1. ASP. NET core in-app configuration
2. Windows Server Configuration
I. ASP. NET Core application Configuration
Web. config configuration ( Official Tutorials )
Key Changes Processpath and arguments of two parameters
Processpath modified to Dotnet
Arguments DLL modified to the current project name
Example configuration:
Startup enable iisintegration components
FTP Publishing to IIS
Here I use vs ftp to publish directly to IIS, you can also use the file system to publish to the local, either of the two can be
Second, Windows server configuration
Installation Environment
1. Microsoft Visual C + + redistributable
2.. NET Core Hosting Bundle
at present here the linked version is dotnetcore.2.0.7-windowshosting, can also be in . NET All downloads Choose the corresponding version
Tip: The version is important, the version is important, the version is important
IIS Configuration
The application pool is set to no managed code
Finally, the test is successful.
ASP. NET core deployment to Windows IIS