Total Page Preview:   000000000217

Explain process hosting in Asp.NetCore MVC

Explain about process hosting in Asp.Net core MVC 

ASP.NET Core in-process hosting enables the hosting of an ASP.NET Core application within the IIS worker process itself. This means that the ASP.NET Core application runs alongside the IIS server, utilizing IIS capabilities and features such as Windows authentication, request processing, and URL rewriting. This hosting model is specific to Windows and IIS.

Here's an example of configuring an ASP.NET Core application for in-process hosting:
1-First, ensure that you have the required packages installed. You can do this using the .NET CLI:
1-Create an ASP.NET Core application. Below is a basic example:
1-In the CreateHostBuilder method, the webBuilder.UseIIS() line is included to enable in-process hosting. This configuration allows the ASP.NET Core application to run within the IIS worker process.
2-Build and run the application using the following .NET CLI commands:
By using webBuilder.UseIIS(), you enable the ASP.NET Core application to leverage IIS features and capabilities, making it easier to integrate with existing IIS-based infrastructure and utilize functionalities provided by IIS.
However, it's important to note that in-process hosting ties the application to the IIS process, which may not be suitable for scenarios requiring process isolation or cross-platform compatibility.

 

 

 

Thank You

About Author

Brijesh Kumar

Database Developer

I have more then 6 years Experience in Microsoft Technologies - SQL Server Database, ETL Azure Cloud - Azure SQL Database, CosmosDB, Azure Data Factory, PowerBI, Web Job, Azure Function, Azure Storage, Web Apps, Powershall and Database Migration On-Premise to Azure Cloud.
LinkedIn : https://www.linkedin.com



Comments


                           
                           

                           

                           

Facebook User: