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
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
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
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
Sources: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/
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.
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
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
ASP.NET Core supports the configuration and management of security in Blazor apps. Security scenarios differ between Blazor Server and Blazor WebAssembly apps. Because Blazor Server apps run on the server, authorization checks are able to determine: The UI options presented to a user (for example, which menu entries are available to a user). Access rules... » read more