Using IHttpClientFactory in ASP.NET Core

In today’s post, we will see how to create named HTTPClient requests using HTTPClientFactory in .NET Core or ASP.NET Core. Create a Named HTTPClient Create an ASP.NET Core Project Let’s look at step by step to understand and create named HTTPClient approach where we shall be creating HTTPClient request object using HTTPClientFactory. Interface IHTTPClientFactory  can be injected in Controller […]

Read more
Caching Static Resources Forever with ASP.NET Core

Caching static resources like stylesheet, JavaScript, or image files allows improving the performance of your website. On the client-side, a static file will always be loaded from the cache which reduces the number of requests to the server and so, the time to get the page and its resources. On the server-side, as they are […]

Read more
How to Run MySQL Connector in ASP.NET Core

This tutorial shows how to use MySQL database with MySQL Connector in Asp.net Core. Before we start it, please make sure you have installed MySQL 5.7, .NET Core, Visual Studio, and also Sakila sample database. Let’s Get Started 1. The first step is to create ASP.NET Core Web Application and you can name it. For […]

Read more
Few Errors in SQL Server and How to Fix it

When starting to work with Entity Framework and SQL Server, you often run into the same errors. Sometimes these errors are caused by missing permissions for the database connection, and sometimes it’s caused the way that the database is accessed. In this article, we will go through some of the most common errors and some […]

Read more
ASP.NET 5 Hosting Just ONLY $1.00/month!

I’ve been using various .NET web hosting providers (Godaddy, HostGator, etc), but honestly not fully satisfied with their services provided. They are cheap option to host .NET website, but not too reliable enough. Do you want a cheap shared hosting plan that support latest .NET 5? In this article, I will review one of best, […]

Read more
How to Fix 404 Error ASP.NET Core

I have checked that some users experience this error 404 when deploying ASP.NET Core applications and I decide to write this tutorial. I hope it will fix the issue. Fix 404 Error ASP.NET Core I found 2 ways to handle 404 error. In fact using these solution you can handle any HTTP status code errors. […]

Read more
How to Redirect WWW and non-HTTPS in ASP.NET Core

In this article, we will give short tutorial about how to redirect your www and non-HTTPS ASP.NET Core website. This is to make sure that your site will be ranked higher, since Google does not like different URLs, for example ones with and without “www.” to show the same content. Redirect Request in ASP.NET Core […]

Read more
HostForLIFEASP.NET vs TMDHosting – ASP.NET Core Hosting Secret Revealed

In this review, we will compare both hosting providers that offer ASP.NET Core hosting. Let’s get started About Company Founded in 2007, HostForLIFEASP.NET become one of the largest ASP.NET hosting in Europe. HostForLIFEASP.NET is awarded as No #1 Microsoft Recommended Windows ASP.NET Core hosting provider. HostForLIFEASP.NET serve many clients around the world. They specialize in Windows ASP.NET Core […]

Read more
Using Mailkit to Send Email ASP.NET Core 3.1

This post is an example how to send email in Asp.net Core 3.1 using Mailkit. I assume that you have downloaded it and install it on your server. How to Send HTML Email in ASP.NET Core This code sends a simple HTML email using the Ethereal free SMTP testing service, you can create a free test account […]

Read more