How to Combine ASP.NET Core SignalR Chat with Angular 5

In this post, I will show an article how to use command line prompt with dotnet CLI and Angular CLI. Let’s get started. Create the Projects We will create a new empty ASP.NET Core Web project. You can either do it with Visual Studio or execute dotnet new web in the command line. I have Angular CLI installed on […]

Read more
Using ASP.NET Core to Find Controllers in Your App

In this post I describe application parts and how ASP.NET Core uses them to find the controllers in your app. I then show how you can retrieve the list at runtime for debugging purposes. Debugging a missing controller A while ago I was converting an ASP.NET application to ASP.NET Core. The solution had many class […]

Read more
How to Perform Database Logging Using NLog in ASP.NET Core

NLog is a highly efficient logging framework which helps us enabling logging to almost all logging source format including Console, File, Database logging, etc. High-end logging requirements like Database or File or Rolling File logging provider are still not available through the .NET Core framework. Currently, the available ASP.NET Core version logging framework is already very rich and gives us a […]

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