Unable to resolve service for type 'System.Net.Http.HttpClient' while attempting to activate... error
When I tried to register a service that uses an object of System.Net.Http.HttpClient for dependency injection, I got this error "Unable to resolve service for type 'System.Net.Http.HttpClient' while attempting to activate "
Server Side Pagination Using Stored Procedure and Dapper in ASP.NET Core Razor Pages
This article explains how paging can be implemented using the stored procedure in ASP.NET Core Razor Pages. When you have millions of records in the database and need high performance and complete control over the query to be used for pagination, you can use stored procedures.
Code Snippet to Create a Checkbox List in an ASP.NET Core Razor Page Application
Checkbox lists are useful when you want to allow users to select more than one predefined option. This article explains how a Checkbox list can be generated, and the selected checkbox values can be retrieved when the page is submitted in an ASP.NET Core Razor Page application.
HTTP Error 500.34 - ASP.NET Core does not support mixing hosting models
"HTTP Error 500.34 - ASP.NET Core does not support mixing hosting models". You will get this error if you host two .NET Core web applications in the same application pool using In-process hosting. This error can be fixed using two methods. One solution is using different application pools for the web applications. The other solution is changing the hosting model of the applications to "OutOfProcess".
HTTP Error 500.30 - ASP.NET Core app failed to start
You may see an HTTP 500.30 error when your ASP.NET Core web application fails to start. This article explains how you can check the error details when you don’t have access to IIS and the web server.