@await RenderSectionAsync giving "Cannot await method group" error
I am creating a razor application consisting of two simple user inputs and two navigation tabs with 'save' and 'cancel' button for the user inputs. I have pasted below part of the _Layout.cshtml code giving the titled error. Am I missing something ? …
In Blazor Web App Server authentication Azure missing iss claims
Hello, I followed this guide to create a Blazor Web App (server) with azure athentication https://learn.microsoft.com/it-it/entra/identity-platform/tutorial-blazor-server and it works. here the authentication…
Best Practice For Database Access In Blazor MAUI Hybrid App
I'm porting a project from MVC into a Blazor MAUI Hybrid app with the intent to share common components and data. I have a Razor Class Library which does this, but was wondering if I should also put my SQL Server data access in here as well or keep that…
How to logout user from all tabs in blazor webassembly standalone with azureb2c
Hi team, I have implemented azure b2c with my blazor webassembly standalone application. Now when user multiple tabs in same browser and log out from one of the session it remains active in other tabs. When user refreshes the page , it still is active.…
How can I avoid TaskCanceledException by RemoteNavigationManager
Hi all; I have a Blazor server app and every couple of minutes I get the following in my logs: Error 12:09:54 [] Microsoft.AspNetCore.Components.Server.Circuits.RemoteNavigationManager - Navigation failed when changing the location to…
![](https://techprofile.blob.core.windows.net/images/FA0ALqN_QU6SmYMGhVsijw.png?8D97DB)
How to setup Blazor Server with Blazor WASM with gRPC for virtual IIS application?
Hi, I have simple Blazor Server without static files. It is only falling into Blazor WASM with static files using FallBackTo. There is gRPC an its Controller mapped on the main endpoint. Everythig is working on https://localhost. Once I try to deploy…
Solution: Custom SignalR Endpoints (Hubs) in a Blazor Server Application using Azure B2C When Deployed to Azure
Posting this in case I need it myself... Issue: Using custom SignalR endpoints (for example a /chat hub) with Authentication in a Blazor Server application that uses Azure B2C will not work when deployed. It will work fine on your local machine (using…
![](https://techprofile.blob.core.windows.net/images/035df977-ce9f-4187-9287-9fc91410949b_PeanutsCharacter_small.png)
Blazor Server: It is possible get Current Loged User In DbContext
Hello, I build blazor server multi tenant application and I wants to use HasQueryFilter in entity framework DbContext for predefined filter with TenantId. But I cannot get Current Loged User in DbContext. I inject to DB Context…
![](https://techprofile.blob.core.windows.net/images/Gx4TtbHt-kepEDnvPQgnHw.png?8D8E9F)
Automatic UI updates with Blazor
Using a .NET 8 Blazor WebApp, I hope to build an application whose pages automatically send updates to all users. For example, when Joe adds a payment to an invoice, Sue (who is viewing the same invoice) should see the new balace reflected on her screen…
![](https://techprofile.blob.core.windows.net/images/c9t5ymh1TkO2g9VLaPJ9XQ.png?8DA06E)
Dropdown gets closed while using mouse event args
Hi Everyone, This works fine when i hover over the button it shows and closes when it comes out of the dropdown however the dropdown still closes while mouse pointer is still in the dropdown. Could some share your ideas!! My need is to display the…
In Blazor Server App, getting 404 error on page refresh
I am working on a Blazor server app with ASP.NET Core MVC and MudBlazor for design. My panel pages are in a PanelProject. I face the following issues: Whenever I try to refresh a page, I get a 404 error. Sometimes, I get a 403 error without knowing…
Azure AD B2C returns 401 Unauthorized when accessing controller
I am building a Blazor WASM app, in .NET 8, which I intend to protect using Azure Active Directory B2C. I created an AAD B2C app registration, and exposed an API from it. Then I created another app registration to serve as a client, and gave it the…
How to display Image Data on .NET MAUI Blazor App
How to display Image Data on .NET MAUI Blazor App Here is the api that fetches Image data https://quizapijwt.azurewebsites.net/api/Questions Images are stored in imagedata bytea CREATE TABLE public."Questions" ( "SNo" int4 NOT NULL…
Blazor Server Side AuthorizationHandler - PreLoad - HttpContext is Null
I have a Multi-Tenant Blazor Server Side application, that uses Pre-Load to use HttpContext in the Razor Pages. I am setting up Authentication and Authorization using Azure Entra. For Authorization I need to Authorize the user against the Tenant. The…
Microsoft Visual Studio 2022 Blazor Web App template and .Net 8 with rendering. Database access and rendering has been for me a tricky one.
Microsoft Visual Studio 2022 Blazor Web App template and .Net 8 with rendering. Database access and rendering has been for me a tricky one. And I may give back a little to community making this GitHub repository…
Severity Code Description Project File Line Suppression State Error MSB4100 Expected "$([System.String]::Copy('%(Identity)').EndsWith('.resources.dll'))" to evaluate to a boolean instead of "$([System.String]::Copy('C:\Users\tarek\OneDrive\Desktop\StoreAp
Severity Code Description Project File Line Suppression State Error MSB4100 Expected "$([System.String]::Copy('%(Identity)').EndsWith('.resources.dll'))" to evaluate to a boolean instead of…
Blazor Multitenant Configuration with Azure App Configuration Service
I have read the following article, but no where in this document does it talk about how this can be instantiated within your program.cs or startup using…
How to reduce the number of wasm libraries loading at the first load
Hello, We are facing issue with loading Blazor web assembly app. We have observed that the Blazor web assembly project loads a lot of wasm libraries in the beginning. It loads around 25mb of data in first load. And this is impacting performance of our…
How to solve the white page problem in blazor server.
When I start my blazor server application, the page content is displayed for less than a second, then I get a blank page. When I right-click inpect in the browser I get the code : <html> **<head></head>** …
Can I force AuthenticationState to refresh (when claims have changed)?
Hi all; Is there any way to force the AuthenticationState to re-read the database when claims have changed? I've implemented a ServerAuthenticationStateProvider and it works great for my adding IdentityUser.Enabled. But when I set it to re-read the…
![](https://techprofile.blob.core.windows.net/images/FA0ALqN_QU6SmYMGhVsijw.png?8D97DB)
![](https://techprofile.blob.core.windows.net/images/FA0ALqN_QU6SmYMGhVsijw.png?8D97DB)