ASP.NET Core
ASP.NET Core Dependency Injection - Cannot consume scoped service
When working with ASP.NET Core and it's Dependency Injection container, you will likely run into an error that's similar to this one: Some services are not able to be constructed (Error while validating the service...
Hosting ASP.NET Core on Heroku (with Docker&CircleCI) for free
The problem You have an application that you need to show off to your friends or a client, and they all need to access it online, and you don't want to use your old server...
ASP.NET Core 2 - Global Model validation
How we (some of us?) do Model validation right now We, developers, use a lot of repetitive code in our ASP.NET (Core) Web API / MVC actions. Inside of our controller actions we usually check...
ASP.NET Core - Unit testing IAuthorizationService and dependencies inside of your controller
Unit Testing - IAuthorizationService, Requirement and Handler You have a controller that makes use of IAuthorizationService and you have a custom requirement - implementation of IAuthorizationRequirement. You might also have your custom handler which is...
ASP.NET Core - InvalidOperationException: Cannot find compilation library location for package 'Microsoft.Win32.Registry'
TL;DR Add following line to your .csproj file: <MvcRazorExcludeRefAssembliesFromPublish>false</MvcRazorExcludeRefAssembliesFromPublish> Introduction I was publishing a project I am working on to web server (Linux) and I had an issue with Razor Pages. However, it seems that...
ASP.NET Core Interview Questions
List of most common ASP.NET Core Interview questions. Prepare for the interview and learn more about ASP.NET Core by going through the list.
ASP.NET Core SignalR Chat with React.js
Introduction In one of the last posts, we saw how we can make a simple chat with ASP.NET Core SignalR and Angular 5. This time, we will use the same code from the backend and...
ASP.NET Core SignalR Chat with Angular 5
ASP.NET Core SignalR chat with latest Angular. Building a small chat application with ASP.NET Core SignalR and Angular 5 using Angular CLI.
Using Web API only on ASP.NET Core - Without MVC specific stuff
Web API vs MVC MVC and Web API have many things in common. Things like filters, attributes, controllers. Since MVC and Web API share so many things with ASP.NET Core we got these two unified...
Why you should learn ASP.NET Core
What is .NET Core? What is ASP.NET Core? It is faster, better, easier to work with. It is completely free and you get Microsoft support.