5,420 questions
0
votes
0
answers
27
views
.razor.css from Library doesn't load
I am fairly new to blazor and have a RCL which uses .razor.css files. The bundle for these files gets created but when I try to access them in my actual project they don't get loaded.
I call the file ...
Advice
0
votes
7
replies
118
views
How to filter a query with the values from a list in ef core
I have a list that is the result of a db query. I need to be able to query another table but filter that query based on the first list. In a perfect world I would join these two tables but they are ...
0
votes
0
answers
72
views
NullReferenceException in Blazor render tree
I am using Blazor server with .NET 10. Sometimes, one of my Razor components triggers a NullReferenceException in the render tree and I fail to understand how this can be:
Unhandled exception ...
Advice
2
votes
0
replies
63
views
How to ensure Blazor backend load is as low as possible?
I'm developing Blazor Web UI for an embedded application on Linux/ARM.
Normally it will be one client per server connection but since the backend HW is quite limited I want to ensure the frontend does ...
0
votes
0
answers
97
views
Storing JWT token in protected local storage returns null due to prerender issue and giving 401 error when calling API endpoint
I am developing an Employee Management System in Blazor Server using PostgreSQL for the database and JWT for authentication. I am using Microsoft Identity tables for user data. I have created a login ...
2
votes
0
answers
67
views
HttpOnly cookie set by ASP.NET Core 10 Web API not reaching browser when called via HttpClient from Blazor server
I have a Blazor server app that calls a separate ASP.NET Core Web API via HttpClient. When the user logs in, the API sets an HttpOnly cookie in the response. However, the cookie never appears in the ...
0
votes
1
answer
66
views
InvalidOperationException: JavaScript interop calls cannot be issued at this time in Blazor Server with ProtectedLocalStorage
I'm building a Blazor Server (.NET 10.0) app with JWT authentication. I'm using ProtectedLocalStorage to persist the JWT token on the client, and a custom AuthenticationStateProvider to decode and ...
0
votes
0
answers
58
views
Blazor Server client side authentication with gRPC
We are building an application where there are several components that must all work together that are not all entirely in my control.
First, a frontend written in Blazor Server that does some ...
0
votes
0
answers
99
views
How to transfer session data from SSR to Interactive mode in Blazor?
I am a student who has just started learning Blazor (.NET 8/10), and I am completely confused about how to correctly transfer session data from SSR (server-side rendering) to Interactive Server mode.
...
1
vote
1
answer
83
views
How do I configure my ASP.NET Core 10 Core/Blazor Server app to work automatically when installed in an IIS subdirectory?
Repro:
Create one of the default/sample ASP.NET Core 10 Blazor Server apps in VS 2022.
Install it in the root directory of an IIS site (http://mysite.example/). Note that everything works as ...
1
vote
0
answers
98
views
What would cause Blazor components in an ASP.NET Core MVC app to stop working after upgrading from .NET 8 to .NET 10?
I've been trying to upgrade my Orchard Core modules to .NET 10 and have been having an issue with my Blazor module.
I'm getting an error
405 - Method Not Allowed
on a request to /_blazor/negotiate?...
0
votes
0
answers
72
views
Server-Side Blazor CircuitHandler: Language switches across sessions when using multi-language support
I'm working on a server-side Blazor app which supports multiple languages. The web page is shown in the language according to the browser settings.
Within the app I want to show the count of connected ...
1
vote
1
answer
207
views
Blazor .NET 10 dependency injected service call is not even firing
I have an issue with Blazor not firing or completing the call when I inject a service interface to make some backend/database calls and use that in my page.
I have a service layer with an interface ...
0
votes
1
answer
168
views
Blazor Bootstrap sidebar menu not loading [closed]
I have a problem with the sidebar not loading. It is placed as on demo, with everything else.
I am using Visual Studio 2026 and .NET 10. Here is my public repo:
https://github.com/vjerani/...
0
votes
1
answer
193
views
.NET 10 Blazor server-side breaks when updating the base path
I created a .NET 10 Blazor Server application using Individual Accounts authentication in Visual Studio 2026. The application works correctly when hosted at the root of the domain. However, after ...
0
votes
0
answers
51
views
How to authenticate a Blazor server .NET 8/9 application with Identity Platform?
I'm trying to get Authentication via AzureAD / Identity Platform to work in .NET 8 (or .NET 9 - it just can't be .NET 10).
I've followed the wizard of the connected service for Identity Platform. It ...
0
votes
1
answer
67
views
In a Blazor Web App (Unified), can the Server project access EF Core directly, or is a separate Web API required?
I'm confused about the recommended architecture for Blazor Web App (Unified).
Blazor is often introduced as a frontend framework, similar to Angular or React, which usually means the frontend talks to ...
0
votes
1
answer
104
views
Publish razor pages to Blazer server hosted in IIS
I am developing an intranet site for my organization that aggregates data from many sources, caches them in defined dynamic lists in a singleton class. The site has many razor pages that query/filter/...
0
votes
0
answers
229
views
.NET 10 JWT authentication - Issue with AuthenticationState Not Updating in AuthorizeView
I'm working on implementing JWT authentication in a Blazor Server application with .NET 10. The issue I'm facing is that while I'm able to extract the JWT token, decode it, and see the claims (like ...
0
votes
0
answers
118
views
How to debug my Blazor project in Visual Studio without the web page timing out
I have noticed in my server side .NET 10 web app that if I sit on a breakpoint for longer than 30 seconds, my web page in Chrome times out and loses its connection:
content-script.js:196 Keep-Alive ...
0
votes
1
answer
81
views
How to open files from the user's local device in serverside Blazor using ElectronNET?
I created a serverside Blazor App and "electronized" it by following the instructions in the read me on the electronNET/electron.NET github page. One of the requirements for this app is to ...
0
votes
1
answer
75
views
Blazor - Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' [closed]
I've built a Blazor application, but when we deployed it into a Testing environment, I received the following error:
An exception occurred while iterating over the results of a query for
context type
...
Best practices
0
votes
1
replies
50
views
Blocking event handlers in server-side Blazor
In my server-side Blazor application I have this setup:
Clicking a button will start some long running process. Upon clicking, the button will be disabled, the long running task will be started, and ...
Advice
2
votes
3
replies
135
views
Bringing over legacy vb.net code into Blazor through class library?
I have a question regarding the best method of bringing over a legacy WCF service written in vb.net into a new Blazor server-side application.
When planning out how to do this, the obvious solution ...
4
votes
2
answers
871
views
How do I fix the broken reconnect modal when upgrading a Blazor server app from .NET 9 to .NET 10?
Repro steps
Create a new Blazor server app in VS 2026, targeting .NET 9
Edit the .csproj file and change the target framework to .NET 10: <TargetFramework>net10.0</TargetFramework>
Start ...
Tooling
1
vote
1
replies
40
views
Set global CSS breakpoints in Blazor
I would like to set the CSS breakpoints globally in Blazor. What are some approaches? I prefer something that keeps the code or additional libraries quite simple.
1
vote
0
answers
82
views
How to add Authorization: Bearer <token> header to Strawberry Shake client after login in Blazor Server?
I'm using Blazor Server with Strawberry Shake 15.1.10.0 to consume a GraphQL API.
Here's the flow:
User logs in via a regular API call (SignInAsync(username, password))
The API returns a JWT token (...
Advice
0
votes
0
replies
258
views
How do I test Blazor Server from Playwright?
I have the following code to start up a kestrel server on a random port.
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Hosting.Server;
using Microsoft.AspNetCore.Hosting.Server....
1
vote
1
answer
151
views
Blazor using InteractiveServer (for admin area /admin/*), and purely static SSR for user facing site?
Does anyone know if there's an easy way in Blazor to have:
A frontend/'user facing' site using Blazor Static SSR I don't want to include blazor.web.js, no enhanced navigation or streaming rendering ...
Advice
1
vote
0
replies
83
views
ASP.NET Core embedded Blazor
Preamble
In our current setup, I am developing a class library that acts as a plugin to our platform. This "works" because the executable scans its own directory and automatically loads ...
Advice
0
votes
4
replies
71
views
How to get values from multiple dynamically generated components in an editform
Hopefully someone can advise me how to get out of this corner I've coded myself into! I'm pretty new to Blazor and have never created a dynamically generated form before. I THOUGHT I was on the right ...
2
votes
1
answer
136
views
Blazor - StateHasChanged not updating after Radzen Button OnClick
In my Blazor server-side application, I have a component with a button that, when clicked, displays a "Loading" bar while I check to make sure a all of my required text fields are not blank.
...
0
votes
2
answers
112
views
.NET 8 Blazor - Equally dynamically sized buttons in a table without JS
I'm using .NET 8 & Blazor, and ONLY css/html/C# - no JS.
Goal: match all buttons to the largest button in any of the cells dynamically. As any button could change size (Usually becoming larger ...
0
votes
1
answer
163
views
Blazor Server LDAP Authentication Fails with “In order to perform this operation a successful bind must be completed”
I’m implementing LDAP user authentication in a Blazor Server application using Novell.Directory.Ldap (LDAPS, port 636).
The goal is to allow users to log in with their Active Directory credentials.
...
0
votes
1
answer
74
views
How do I handle empty files in Blazor Server InputFile after cancelling?
I'm coding a Blazor Server Web Application, specifically a form. I'm struggling with an InputSelect field, and I couldn't find any solution to this specific problem.
Here's a basic example I made ...
0
votes
1
answer
60
views
Blazor - Calling @code function from HTML not correctly displaying data
I've built a Blazor application, and I wrote some logic in a for-each loop to display some data. The logic is meant to go something like this: for every job type, display the jobs for that particular ...
0
votes
0
answers
97
views
Blazors <EditForm> component cannot be used to submit login forms on SSR pages. [.NET 9.0 | InteractiveAuto solution]
I am using .NET 9.0, my statically rendered login page results in an error when it's submitted:
A valid antiforgery token was not provided with the request. Add an antiforgery token, or disable ...
1
vote
1
answer
96
views
Blazor - when JavaScript runs for custom context menu, app navigates back to homepage
Background
I have a Blazor server-side app I'm building which will be a music sheets website. I'm having trouble running JavaScript code for a context menu. I've started adding a custom context menu, ...
0
votes
0
answers
94
views
How can I make UI template Javascript work each time a page is loaded in Blazor SSR Application .NET 9?
I'm building a web application using a Blazor web app. The interactive render mode is set to server and interactivity location is set to "Per Page / Component".
I've integrated a ready ...
1
vote
1
answer
88
views
Correct pattern for two way binding on nested components in blazor server?
I have a series of nested components. In an inner component, I'm using a 3rd party vendor component. I then also wrap that component in an outer component, then place the outer component on the page.
...
1
vote
1
answer
104
views
Blazor Server SignInAsync works but authentication cookie is not set in browser
I'm building a Blazor Server app with a Minimal API endpoint for login. Everything seems to work server-side:
My CustomAuthenticationStateProvider correctly updates the
AuthenticationState via ...
0
votes
0
answers
201
views
Error: System.InvalidOperationException: JavaScript interop calls cannot be issued at this time
I am getting an intermittent exception in the console from the DOM:
Uncaught (in promise) Error: System.InvalidOperationException:
JavaScript interop calls cannot be issued at this time. This is
...
1
vote
1
answer
73
views
Blazor EditForm: Query parameters not binding to DateTime inputs on navigation
I can't get the check-in and check-out dates I entered on the form. When I enter the values and submit, I see the default values I assigned at the beginning(Datetime.Now and the next day), and I don'...
0
votes
1
answer
62
views
Does blazor have default redirect to login
I am attempting to implement a redirect to login on unauthorized pages. I think I have removed all hardcoded values that redirect to Account/Login?returnUrl=... but blazor insists on redirecting to ...
0
votes
1
answer
67
views
ASP.NET Core Web API not authenticating with Identity cookies from Blazor Server app
I have two ASP.NET Core applications:
Blazor Server app with Identity authentication (working correctly)
Web API that should share authentication cookies with the Blazor app
The API is not ...
0
votes
2
answers
488
views
How to use DI with Semantic Kernel plugins?
I'm trying out Microsoft's Semantic Kernel for chat completion in a Blazor app. I added a service that uses EF Core:
public interface ISearchService
{
Task<string?> GetCustomerAsync(string ...
2
votes
1
answer
70
views
MudBlazor - MudTable doesn't open MudDialog
I'm creating a MudTable with some data, and I want to open a MudDialog to edit the row data and then save it.
<MudTable T="Company" items="@_Companies" Dense=true Hover=true ...
0
votes
0
answers
135
views
Failed to Build .NET 9 MAUI Blazor Hybrid APK (Worked in .NET 8)
I’m working on a .NET MAUI Blazor Hybrid app and trying to generate an APK using the following command:
dotnet publish -f net9.0-android -c Release -p:AndroidPackageFormat=apk
My solution contains ...
0
votes
0
answers
153
views
Blazor Web App not hot reloading in Visual Studio
I created a new Blazor Web App (very important as WASM does work). I have the "Hot Reload" checkbox checked:
When I start it up, it starts up like this:
info: Microsoft.Hosting.Lifetime[14]
...
0
votes
0
answers
65
views
In my Blazor Server application, how can I setup a control property like angular's "ng-if" that I can apply to any html tag?
I'm currently building a Blazor Server application, and migrating code from an old AngularJs / ASP.NET MVC website. Part of that migration includes translating the html in the Angular pages into C# in ...