Application Insights .NET Core Application

So why would you ever log to Application Insights AND File log at the same time? Well, if you are hosting your own applications on your own machine, it can be great to have a file version of what’s happened. The file will be updated immediately, whereas Application Insights are sometimes up to 5 minutes […]

Read more
How to Troubleshoot .NET Blazor WASM Debugging

The “Obvious” of WASM Debugging While coding with Blazor WASM, it’s easy to get lulled into a false sense of comfort. After all, it’s all C# and .NET, right? Well, not exactly. It’s easy to gloss over that while our code runs on a version of .NET, it’s not the one we know and love. […]

Read more
How to Force HTTPS in ASP.NET Core

HTTPS is mandatory to grant security to your web application, regardless of the programming framework you are using. But what happens if a client calls your web app with HTTP instead of HTTPS? How can you force it to use HTTPS? Let’s delve into the options provided by ASP.NET Core. Use HTTPS Redirection I guess […]

Read more
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 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