Publish. NET Core to IIS

Source: Internet
Author: User
Tags net core windows server hosting server hosting

Directory:

    • Support Operating System
    • IIS Configuration
    • Installation. Network core Windows Server managed packages
    • deploying applications
    • In the IIS configuration Web site
    • Create a Data Protection registry key
    • Common Mistakes
    • Additional Resources
Support Operating System

The following operating systems are supported:

    • Windows 7 and later
    • Windows Server version R2 and above

IIS Configuration

Enable the Web server (IIS) Server role to establish the role service.

Windows desktop Operating system

Go to Control Panel > Programs > Programs and Features > Turn Windows features on or off . Open Internet Information Services, open Web Administration Tools and World Wide Web Services in IIS.

Windows Server operating system

Server operating system, use the Add Roles and Features Wizard to turn on the IIS features of the server.

In the role Services Step, select the IIS service role you want or accept the default role service.

Continue to enable Web server roles and services by confirming the steps.

To install a. NET Core Windows Server Managed Package
  1. Installing on the server. NET Core Windows Server Hosting。 It installs the. NET Core Runtime,. NET CoreRun Library,ASP. NET Core module, which can create a response agent between IIS and Kestrel servers。
  2. Execute the iisreset command or restart the IIS service.
deploying applications
  1. On the IIS server, create a. NET Core publishing folder that contains the published project files.
  2. Create a logs   folder to save the application log (provided logging is enabled). You can skip this step if you don't log logs.
  3. Deploy the application to a folder created on the destination IIS server. For information about using Web deployment, see Publishing with IIS Web Deployment using Visual Studio.

Warning

The. NET Core application hosts a reverse proxy between IIS and the Kestrel server. If you are creating a reverse proxy, the Web. config configuration file must have a root directory for the deployment path.

In the IIS configuration Web site
    1. In IIS Manager , create a new Web site. Fill in the site name and set the physical path folder. Set the bindings , and then create the Web site.
    2. Set the application pool for this web site without managed code . ASP. NET core runs in a separate process.

Open the Add Web site window.

Configure the Web site.

In the application pool Panel, open the Edit application Pool window, right-click and select Basic Settings .

Settings . The NET CLR version is unmanaged code .

Browse the site.

Publish. NET Core to IIS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.