5 Ways to Redirect Request ASP.NET Core

In ASP.NET Core applications it is possible to redirect to a specific URL in several different ways. In this article, we will learn about these techniques and the code required to redirect a request in ASP.NET Core There will always be a need for redirection to another URL based on some conditions like redirecting a […]

Read more
How to Use ILogger in .NET Applications to Trace Logging Output

.NET’s greatest strength is its long history of supporting developers through each industry paradigm shift, but just because there’s a new way of doing things doesn’t mean the established method goes away. It’s also a source of confusion and frustration for many. Developers spend time trying to merge the past with the present while also […]

Read more
How to Implement Cookies in ASP.NET Core 6

The term cookie refers to a piece of data that is saved on the computer of a user and is generally used to record information about the user. Most browsers store each cookie as a small file, but Firefox stores them all in a single file. Cookies are made up of two parts: a key […]

Read more
Know Further About Global Error Handling ASP.NET 6

Introduction When we are building our application, although we hope that our application will run without any errors until the end of time. This is not really the case exceptions happens in applications and we need to handle them. Exception Handling is a foundation that we need to consider while we are designing and building […]

Read more
How to Solve Refresh Tokens in ASP.NET Core Web Api

One thing that comes to mind when using access tokens to secure a web api is what do you do when the token expires? Do you ask the user for credentials again? That’s not really a good option. This blog post is about using refresh tokens to solve this problem. Specifically in ASP.NET Core Web […]

Read more
How to Build ASP.NET Core Api Project

In this article, I am going to discuss How to Build ASP.NET Core Web API Project from Scratch i.e. how to convert a console application to a Web API Application. So, what we will do here in this article, we will create an ASP.NET Core Console Application, and then we will convert that console application into ASP.NET […]

Read more
How to Authenticate and Authorize JWT Token in ASP.NET Core 6

In this article, I will explain how to create the JWT token and how to Authenticate and Authorize it in very simple steps. 1. Add ASP.Net Core API Application Open visual studio 2022 click on create new project –> Select ASP.Net Core Web API –> Next Give desired project and solution name –> Next –> select framework […]

Read more
The Difference Between Middleware and Filters Power in ASP.NET Core

In ASP.NET core, Middleware and Filters are two concepts which are very useful & powerful but often confuses also on which one to choose. Middleware and Filters serves similar purpose and both can be used to achieve the common tasks like exception handling, localizations, authentications etc… but both has certain difference in a way it […]

Read more
How to Host ASP.NET Core Web Application in Windows Service

Did you know that we can host ASP.NET service on Windows with Windows Service without using IIS? The benefit of hosting on Windows Service is that the application will automatically restart after the server reboot. This functionality is implemented using a Worker Service Template that becomes the initial point for writing and building long-running service […]

Read more