ASP.NET Core Pitfalls – Returning a Custom Service Provider from ConfigureServices

ASP.NET Core Pitfalls – Returning a Custom Service Provider from ConfigureServices

ASP.NET Core Pitfalls – Returning a Custom Service Provider from ConfigureServices. In pre-3.1 versions of ASP.NET Core, you could return your own service provider (AutoFac, Ninject, etc) by returning some IServiceProvider-implementing class from the ConfigureServices method.

In pre-3.1 versions of ASP.NET Core, you could return your own service provider (AutoFacNinject, etc) by returning some IServiceProvider-implementing class from the ConfigureServices method. This is no longer supporting, and having code like this results in an NotSupportedException being thrown at startup:

public IServiceProvider ConfigureServices(IServiceCollection services)
{
    //something
    return myCustomServiceProvider;
}

pitfalls aspdotnet core configureservices

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

jQuery Ajax CRUD in ASP.NET Core MVC with Modal Popup

In this article, we’ll discuss how to use jQuery Ajax for ASP.NET Core MVC CRUD Operations using Bootstrap Modal. With jQuery Ajax, we can make HTTP request to controller action methods without reloading the entire page, like a single page application.

Set start URL in ASP.NET Core - Quick & Easy ways

This article will cover the ways to set start URL in ASP.NET Core applications i.e. change the default URL (http://localhost:5000) in ASP.NET Core applications. Set start URL in ASP.NET Core - Quick & Easy ways.

ASP.NET Core Identity Roles based Authorization

ASP.NET Core Identity Roles based Authorization. This article will get you started with what are ASP.NET Core Identity roles and the need for roles, how to enable ASP.NET Core Identity roles in MVC Application, and how to implement role-based authorization.

ASP.NET Core Identity Roles based Authorization

ASP.NET Core Identity Roles based Authorization. This article will get you started with what are ASP.NET Core Identity roles and the need for roles, how to enable ASP.NET Core Identity roles in MVC Application, and how to implement role-based authorization.

ASP.NET Core Pitfalls Index

ASP.NET Core Pitfalls Index. Here is the list of posts so far on ASP.NET Core Pitfalls.