Host ASP.Net Core With IIS

Things to know ASP.Net Core run as separate unlike classic ASP.Net which run in process of the IIS Worker Process.

ASP.Net Core run in it’s own web server using highly optimised Kestrel component .

ASP.NET Core applications are standalone Console applications invoked through the dotnet runtime command. It uses AspNetCoreModule to execute the external console.
The AspNetCoreModule loades when the first request comes and then routed to your ASP.NET Core application.

Incoming request int the kernel mode http.sys which routes into IIS.
The request is then forwarded to your ASP.NET Core application on the HTTP port,
Kestrel pushes the request into the ASP.NET Core middleware pipeline which then handles your request and HTTP output is then passed back to the IIS.

Web.Config

<?xml version=”1.0″ encoding=”utf-8″?>
<configuration>
<system.webServer>
<handlers>
<add name=”aspNetCore” path=”*” verb=”*” modules=”AspNetCoreModule” resourceType=”Unspecified” />
</handlers>
<aspNetCore processPath=”dotnet” arguments=”.\WAppCore.dll” stdoutLogEnabled=”false” stdoutLogFile=”.\logs\stdout” />
</system.webServer>
</configuration>

Note: Check AspNetCoreModule is installed in IIS.
This can be installed using ASP.Net Core SDK

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s