CSS Class and ID Selectors

You can also define your own selectors in the form of class and ID selectors. The benefit of this is that you can have the same HTML element, but present it differently depending on its class or ID. In the CSS, a class selector is a name preceded by a full stop (“.”) and an ID selector is a... » read more

Installing .NET 5 for IIS

https://dotnet.microsoft.com/download https://dotnet.microsoft.com/download/dotnet/current/runtime Error: HTTP Error 500.30 – ASP.NET Core app failed to start

Install IIS

Go to Program and Features part of Control Panel, on the left hand side click on the “Turn Windows features on or off” link. Now click on the Internet Information Services check box. If you’re a developer you are going to want to expand it and explore the sub-components as well. By default it installs... » read more

SSRS member not found DISP_E_MEMBERNOTFOUND

Error: SSRS “member not found (exception from HRESULT: 0x80020003 DISP_E_MEMBERNOTFOUND” Visual Studio2019 Community Must be a bug in Visual Studio Community 2019 (v16.8.1)You can Add an Existing RDL and change it up Fix: Sources: https://stackoverflow.com/questions/64824124/ssrs-member-not-found-exception-from-hresult-0x80020003-disp-e-membernotfound

Custom Identity Claim in Blazor

1. Create new field of string type in the AspNetUsers table of Identity database. 2. Add field to ApplicationUser class. (Server) 3. Create new class called CustomUserClaimsPrincipalFactory 4. Add to ConfigureServices in Startup.cs (Server) Note: As soon as the line .AddClaimsPrincipalFactory<CustomUserClaimsPrincipalFactory>(); is added, role does not work anymore.

Secure an ASP.NET Core Blazor WebAssembly hosted app with Identity Server

Note: Need to configure both .Client and .Server projects. .Client Create a new class called CustomUserFactory.cs Add to Main of Program.cs (Client) .Server Add to ConfigureServices of Startup.cs (Server) Result Index.razor (Client) OrgAdminOnly.razor (Client) Sources: https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/hosted-with-identity-server?view=aspnetcore-3.1&tabs=visual-studio

Store does not implement IUserRoleStore

When configuring Blazor Identity … Error: NotSupportedException: Store does not implement IUserRoleStore<TUser>. var roles = await _signInManager.UserManager.GetRolesAsync(user); Fix: Add .AddRoles<IdentityRole>() to Configuration of Startup.cs