C# Random

Sources: https://docs.microsoft.com/en-us/dotnet/api/system.random?view=net-5.0

DBCC CHECKTABLE Fix Database Table

Examples A. Checking a specific table The following example checks the data page integrity of the HumanResources.Employee table in the AdventureWorks2012 database.SQLCopy B. Performing a low-overhead check of the table The following example performs a low overhead check of the Employee table in the AdventureWorks2012 database.SQLCopy C. Checking a specific index The following example checks a specific index, obtained... » read more

Debug Azure Web App using Kudu

Using Kudu First, let’s launch Kudu. You can do this in a variety of ways. Here are a few: Launch Kudu manually from the address bar If your website is https://magicalunicorns.azurewebsites.net, the Kudu URL is https://magicalunicorns.scm.azurewebsites.net. Notice the appended “scm.” here. You’ll need to be signed in with an account with access to the App Service resource... » read more

Publish with Remove additional files at destination option

Publish in Visual Studio. “Remove additional files at destination” option Remove additional files at destination The most common and easiest way to resolve this error is to re-publish your code, but with the options to “Remove additional files at destination” turned on. This will ensure that Visual Studio’s web deploy process will delete all existing... » read more

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 (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