I would like to know the difference between ASPNetCoreModule and ASPNetCoreModuleV2, when to use each of them in which scenario.
In Asp.Net Core, there are several benefits or advantages we can achieve over Asp.Net MVC. As per the Microsoft, Asp.Net Core could be a framework that is compatible with building each internet and cloud applications. It is basically a fully open-source platform.
The ASP.NET Core Module is a native IIS module that plugs into the IIS pipeline to forward web requests to backend ASP.NET Core apps. The module only works with Kestrel.
Update 2020: Do note that ASP.NET Core 3 and higher now depend on .NET Core and can no longer be used on .NET Framework. The below description is for ASP.NET Core 1.x-2.x; the layer separation still holds true for ASP.NET Core 3.0 but the ASP.NET Core layer can no longer be used on top of .NET Framework in 3.0+.
The "Diagnose and solve problems" tab in Azure point to the module "AspNetCoreModuleV2" as shown in picture Azure - Diagnose and solve problems Installing the .NET 3.0 Runtime Hosting Bundle as suggested here aspNetCore 2.2.0 - AspNetCoreModuleV2 error
ASPNetCoreModule
("version 1") is the IIS Module that enables IIS to run ASP.NET Core 1.x and 2.x applications when they're running in .NET Core
ASPNetCoreModule
.ASPNetCoreModuleV2
supports ASP.NET Core 2.0 and later (including ASP.NET Core 3.x, .NET 5, .NET 6, etc). It also supports more features than V1 (such as custom offline messages).
when to use each of them in which scenario.
Here's a flowchart:
ASPNetCoreModule
(V1) and update to ASP.NET Core 3.1 LTSB pronto.ASPNetCoreModuleV2
ASPNetCoreModuleV2
ASPNetCoreModule
nor ASPNetCoreModuleV2
In short: there is no reason to be using ASPNetCoreModule
("V1") today.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With