Author
Blazor: Authenticate State Not Updating After Login
Issue: Authenticate state does not update after login when in main layout page, therefore IsInRole function does not work. Workaround: Force the browser to refresh.
AuthenticationStateProvider vs AuthenticationState
AuthenticationStateProvider AuthenticationState AuthenticationStateProvider vs AuthenticationState Blazor has a built-in service called AuthenticationStateProvider service. This service obtains authentication state data from ASP.NET Core’s HttpContext.User. This is how authentication state integrates with existing ASP.NET Core authentication mechanisms. It is this service that is used by AuthorizeView component and CascadingAuthenticationState component to get the authentication state. Don’t use AuthenticationStateProvider directly. Use the AuthorizeView component. The main drawback to using AuthenticationStateProvider directly... » read more
CSS and @ Symbol
These are all known in CSS as at-rules. They’re special instructions for the browser, not directly related to styling of (X)HTML/XML elements in Web documents using rules and properties, although they do play important roles in controlling how styles are applied. @font-face rules define custom fonts for use in your designs that aren’t always available on all... » read more
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
Asynchronous programming with async and await
Sources: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/