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 (Publish) to a Azure hosted web site. When creating a new App Service in Azure Portal, select .NET 5. When creating a new Blazor WebAssembly App in Visual Studio, select .NET 5 framework. When deploying from Visual Studio, deploy the .Server project and not the .Client project.... » read more

.NET Identity Database v5.0.0

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 v5.0.0 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

Blazor Date Field Binding

Two-way binding is having a bidirectional data flow, i.e., passing the value from the property to the UI and then from the view (UI) to the property. Blazor provides support for two-way binding using the bind attribute. Syntax for creating two-way binding property: Note: Must enclose “InputDate” field in a “EditForm”. Sources: https://www.syncfusion.com/faq/blazor/data-binding/how-to-make-two-way-binding-with-input-date-value https://www.pragimtech.com/blog/blazor/blazor-datepicker/