Blazor REST API

https://learn-blazor.com/architecture/rest-api/ https://github.com/software-architects/learn-blazor/tree/master/samples/RestApi

An inconsistency was detected

Error: Running a query and got this error… An inconsistency was detected during an internal operation. Please contact technical support. Fix: DBCC CHECKDB (‘DMS’) WITH NO_INFOMSGS, ALL_ERRORMSGS DBCC CHECKDB(‘DMS’, REPAIR_REBUILD) dbcc CHECKDB(‘DMS’, REPAIR_ALLOW_DATA_LOSS) Sources: https://dba.stackexchange.com/questions/11235/an-inconsistency-was-detected

Deploy Blazor App to Azure

Make sure you check the following before deploying to a Azure hosted web site. When creating a new App Service in Azure, you need to select either .NET 5 or .NET Core. When deploying from Visual Studio, deploy the .Server project and not the .Client project. Do not use Identity.

.NET Identity Database v3.1.6

Run the following in Package Manger Console to create the Identity Tables to a new database. You will get an error if the tables already exist from a previous version. PM> Update-Database Identity Database v3.1.6 Tables AspNetRoleClaims AspNetRoles AspNetUserClaims AspNetUserLogins AspNetUserRoles AspNetUsers AspNetUserTokens DeviceCodes PersistedGrants

Microsoft Announces .Net 5 – A Brief Overview

During the Microsoft Build 2019, the Microsoft Team announced that .Net 5 is on its way out, and it would be arriving in 2020. This will be the next huge release after the .Net Framework latest version 4.8. .Net Framework is 17 years old and there are millions of apps built on it, by using every... » read more

No connection could be made because the target machine actively refused it

Error: An unhandled exception occurred while processing the request. SocketException: No connection could be made because the target machine actively refused it. System.Net.Http.ConnectHelper.ConnectAsync(string host, int port, CancellationToken cancellationToken) HttpRequestException: No connection could be made because the target machine actively refused it. System.Net.Http.ConnectHelper.ConnectAsync(string host, int port, CancellationToken cancellationToken) Fix: In solutions with both web api and... » read more

Update-Database

Package Manager Console … Updates the “Identity” database to the last migration or to a specified migration. Note: You will run into errors if there is already existing identity tables from previous versions. Recommend creating a new database to create the identity tables and then apply updates to the existing identity database. The Update command will create... » read more

EF Core tools version is older than that of the runtime

Error: Getting the following error in NuGet Package Manager Console … The EF Core tools version '3.1.3' is older than that of the runtime '3.1.5'. Update the tools for the latest features and bug fixes. Fix: Run the following in NuGet Package Manager Console … Install-Package Microsoft.EntityFrameworkCore -Version 3.1.5Install-Package Microsoft.EntityFrameworkCore.Tools -Version 3.1.5 Note: Make sure... » read more

Pragim Technology Blazor Course Tutorial

https://www.pragimtech.com/blog/blazor/blazor-course-wrap-up/ This course is around 7 hours and consists of 58 clips. We have covered most of the blazor concepts that help you build real-world blazor applications. Setup and run Blazor application You can find the complete source code of the project that we have built as part of this course at the following link.... » read more