Blazor Server OIDC Logout with Keycloak Redirects but Session Not Cleared
have a Blazor Server application configured with OpenID Connect (OIDC) authentication using Keycloak. Login works fine and I can authenticate successfully. However, when I log out, I get redirected to the Keycloak logout page but upon returning to my…
Blazor HeadContent
I have some Open Graph meta tags that I add within the HeadContent. The problem is that I must add all those tags on every page. <HeadContent> <meta name="description" content="@metaDescription" /> <meta…
Arrange picture from right to left in Blazor
Each picture have TextBox at bottom.Somebody help @page "/" <PageTitle>Home</PageTitle> <h1>Hello, world!</h1> Welcome to your new app. <p></p> @foreach (var image in images) { <p> <img…
Blazor .net 8 server project editForm textfield and teaxtarea not editable
Hi everyone, I'm working on a Blazor project where I need to implement an editable modal dialog for adding and updating tasks. I attempted to follow some examples and even tried using a custom TaskModel, but I keep running into issues. Here's what I'm…
How to add a different CSS to a razor page in Blazor WASM?
I am working on a Blazor WASM e-commerce application using the .NET 6 old version with a default template. I want to add a new razor page with a different look while keeping the old ones in the project. How can I achieve this? Specifically, I want to add…
Breaking Change
Created a brand new Blazor Web Assembly Stand Alone project with Visual Studio 2022, .net 8. Updated the "Microsoft.AspNetCore.Components.WebAssembly" commponents from Version="8.0.3" to Version="8.0.6" The app does not…
Create, Reference and use a Razor class library.
Hello! I'm training on Microsoft Learn. My current stage is the following module: https://learn.microsoft.com/en-us/training/modules/blazor-build-reusable-components/3-create-razor-class-library First of all, this exercise starts saying that it uses…
How do you Register a Blazor App to Upload Photos to Azure Blob Storage
I've created a simple Blazor Application based on the standard Blazor Web application template to upload photos to Azure Blob Storage. It works when I run it in my computer, but I'm having trouble getting it to run when I Publish it to an Azure App…
Problem in bitmap to vector image converter
Hi, I want to make an app that converts a bitmap image to SVG format. Below you can see my code: @page "/" @using Microsoft.JSInterop @inject IJSRuntime JsRuntime <h1>Convert Bitmap to Vector</h1> <input type="file"…
My application didn't run
Hi, I have an blazor webassembly application and when I try to run it the loacalhost doesn't launch Apparently, the problem come from the debugger; Have you an idea to fix it?
How do I override the default Blazor scaffolding template in Visual Studio 2022
I want to edit the scaffolding template for Blazor CRUD pages, but my changes to the template are not being reflected in the output. I tried researching this issue, and the closest answers I could find are how to edit Razor templates, or MVC component…
Counter page in blazor not working
This code pick from somewhere but not count when Click event in Counter page. can tell why. @page "/counter" <h1>Counter</h1> <p>The counter value is @currentCount</p> <button class="btn btn-primary"…
How can I trigger a method from the OrderConfirmation page in Blazor WASM?
Hi, I have a Blazor WASM Client e-commerce application where I'm showing cart counts in the NavMenu. I'm trying to call the GetCartCount() method from the OrderConfirmation razor page after payment has been completed to make the cart count zero, but I'm…
Make one picture for one Button click at the bottom picture
Hi All , Can someone show how modify this code then when we click it show the new blazor page . @page "/House" <h1>HOUSE</h1> @for (int i = 1; i <= images.Count; ++i) { <button class="btn-primary">Click…
How to resolve CORS errors when running Blazor WASM alongside Blazor Server and ASP.NET Core Web API?
Hi, I have a solution having Blazor WASM, Blazor Server and Asp.Net Core Web API. When I try to run the applications, the Blazor server and API work without any problem but I get this error while running the WASM. Cross-Origin Request Blocked: The Same…
Certification configuration: I'm not able to verify my domain
Hello, after developing a Blazor Web App I tried to connect the app with my own domain. So I have to verify my domain to bind the certificate to my app. First step (import certificate to key fault) seems to work (step is checked). But I do not see the…
Weird errors problem with dotnet watch with blazor/wasm.
I have a really annoying problem with dotnet watch and blazor/wasm. I have a solution in which I have multplie projects, for example an API, a blazor/wasm project and some common classlibraries. I start the API part with CTRL+F5, and I start the Blazor…
Microsoft.Web/serverfarms (BadGateway error) in Azure Web App service deployment
{ "status": "Failed", "error": { "code": "Forbidden", "message": "The subscription '5c793fb4-62d4-4c5b-a17a-07fc43a67282' is not allowed to create or update the…
Why does Blazor server app takes away memory while being inactive?
We developed a Blazor server app and is going through testing phase. Our clients have some concern. What we notice is that before the app is launched memory is 4784 K, one the app is launched and at the end of rendering the login page it is already over…
Blazor not found in Visual studio,blazor .net framwork template not found
Blazor template is being not found in visual studio This question is related to the following Learning Module