I have looked at this guide on how to disable registration template in ASP.NET Core:
https://stackoverflow.com/a/58852405/3850405
It is basically a reference to this article:
Running the command in the server project works fine and everything can be removed. However when you try to Log in again from the client the following error is now present:
An unhandled exception occurred while processing the request. InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.SignInManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' while attempting to activate 'Blazor.Server.Areas.Identity.Pages.Account.LoginModel'. Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, bool isDefaultParameterRequired)
Reading up on Standalone or hosted Blazor WebAssembly apps for Scaffold Identity it says:
Client-side Blazor WebAssembly apps use their own Identity UI approaches and can't use ASP.NET Core Identity scaffolding. Server-side ASP.NET Core apps of hosted Blazor solutions can follow the Razor Pages/MVC guidance in this article and are configured just like any other type of ASP.NET Core app that supports Identity.
The Blazor framework doesn't include Razor component versions of Identity UI pages. Identity UI Razor components can be custom built or obtained from unsupported third-party sources.
Given Server-side ASP.NET Core apps of hosted Blazor solutions can follow > the Razor Pages/MVC guidance in this article and are configured just > like any other type of ASP.NET Core app that supports Identity. and that the Server project is ASP.NET Core Hosted I hope it can work.