1,683 questions with Developer technologies | .NET | Blazor tags

Sort by: Updated
1 answer

Structuring a .NET Core 9 Blazor + API Architecture for Microservices Readiness, DRY/SOLID Compliance, and Secure Account Management Best Practices

Hello everyone, I’m working on a content management application (wiki-style) developed in .NET Core 9, designed to be microservices-ready and modular enough to evolve without heavy refactoring. The app will run on Azure without containers. 🏗️ Current…

Developer technologies | .NET | Blazor
asked 2025-08-28T08:54:10.51+00:00
Laurent Guigon 311 Reputation points
answered 2025-08-28T15:54:13.1333333+00:00
Bruce (SqlWork.com) 79,526 Reputation points Volunteer Moderator
4 answers

Get Absolute URL in Blazor class

Hello, I have a class inside the Services folder. It contains a LogError(Exception ex) method in which I need the absolute URL in order to get the requested page. However, I am unable to access the HttpContext.Request.Url or any other method/extension…

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | ASP.NET | Other
Developer technologies | C#
asked 2025-01-20T14:00:42.1733333+00:00
Kuler Master 406 Reputation points
commented 2025-08-28T07:42:38.0333333+00:00
Danny Nguyen (WICLOUD CORPORATION) 1,030 Reputation points Microsoft External Staff
1 answer

Blazor Server (.NET 8) redirect fails after login

We have a Blazor Server app (.NET 8) that is hosted on IIS. Users access it by logging into Citrix with their Active Directory credentials, then into the app (with those same credentials). We use ASP.NET Identity to manage login. Both the end-users and…

Windows development | Internet Information Services
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Windows for business | Windows Server | User experience | Other
asked 2025-02-05T22:16:40.9766667+00:00
Ryan Anderson 25 Reputation points
commented 2025-08-27T02:29:59.6+00:00
Jack Dang (WICLOUD CORPORATION) 1,275 Reputation points Microsoft External Staff
0 answers

Data API Builder - Azure Static Web Apps

Trying to understand Data API Builder (DAB) and if its right for my use case. Based off a simple address book example, there is a table "Addresses" that would have columns: User (the user of the address book, likely an ID linked from a User…

Developer technologies | .NET | Blazor
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,222 questions
asked 2024-10-31T00:28:08.82+00:00
JohnM 25 Reputation points
edited a comment 2025-08-26T09:57:58.2866667+00:00
Srikanth Reddy Bandi 255 Reputation points Microsoft External Staff Moderator
1 answer

Blazor two-way binding

I have a Blazor webassembly client. I want to bind a property to a checkbox type input field via a model class. Model: public class Filter { public bool Selected { get; set; } public ItemType ItemType { get; } public Filter(ItemType…

Developer technologies | .NET | Blazor
asked 2021-06-18T06:34:36.067+00:00
Bence Mihucza 1 Reputation point
answered 2025-08-21T10:09:55.5+00:00
Mahendra Singh 0 Reputation points
5 answers

New to Blazor - A valid antiforgery token was not provided with the request.

Hi all, Can any body please give me an advice so I can move forward to the main page, why I'm getting "A valid antiforgery token was not provided with the request. Add an antiforgery token, or disable antiforgery validation for this endpoint."…

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
asked 2025-01-25T18:30:51.9566667+00:00
Dondon510 261 Reputation points
commented 2025-08-18T10:58:26.37+00:00
Raymond Huynh (WICLOUD CORPORATION) 715 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Why is OnInitializedAsync() called twice on a page reload

Hi all; Normally when a page is being created & rendered in Blazor version 8, RenderMode.InteractiveServer, OnInitializedAsync() is called once. But when I do a Reload on Chrome, it is called twice. And all child components in the page are called…

Developer technologies | .NET | Blazor
asked 2024-03-17T23:34:40.2933333+00:00
David Thielen 3,211 Reputation points
commented 2025-08-16T20:28:30.1033333+00:00
Bruce (SqlWork.com) 79,526 Reputation points Volunteer Moderator
1 answer

Blazor WebAssembly (.NET 8) - AuthenticationService.init JSInterop Error and Debugger Protocol Issues

I'm working on a Blazor WebAssembly solution targeting .NET 8, with both client and server projects. The client uses MSAL authentication (Microsoft.AspNetCore.Components.WebAssembly.Authentication and Microsoft.Authentication.WebAssembly.Msal). I'm…

Developer technologies | .NET | Blazor
asked 2025-08-13T12:41:42.7666667+00:00
Luke Abraham 0 Reputation points
answered 2025-08-16T15:52:40.27+00:00
Bruce (SqlWork.com) 79,526 Reputation points Volunteer Moderator
3 answers

I can't find the Blazor Web Assembly option, I only see two options the Blazor Web App and the standalone Web Assembly application but none of them give me the ASP .NET Core Hosted option, why?

I do have a question related to this topic because I want to start a project with the Blazor WebAssembly App template but it is no longer only those two that you mention. according to a video it should look like this: I would like to know if the way I…

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | C#
asked 2025-01-20T17:12:21.9833333+00:00
Carlos Enrique Canales L�pez 0 Reputation points
commented 2025-08-13T07:44:20.5933333+00:00
Raymond Huynh (WICLOUD CORPORATION) 715 Reputation points Microsoft External Staff
3 answers

Making a Blazor WebAssembly E-commerce Application Responsive with Flexbox

A Blazor WebAssembly e-commerce application has been built, but the design looks good only on a 23-inch 1920x1080 laptop. The layout includes a header, a left navigation menu, and a footer that is consistent across all pages. The goal is to make this…

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
asked 2024-12-31T08:20:29.7566667+00:00
Cenk 1,036 Reputation points
commented 2025-08-13T03:59:18.4233333+00:00
Raymond Huynh (WICLOUD CORPORATION) 715 Reputation points Microsoft External Staff
3 answers

Blazor ValidationMessage being conditional

Hello, I have a registration form where the users can select if they are private or company. What I need is to make the Company Name validation conditional. Meaning, if they select a company it gets enabled and if they select a private it gets disabled.…

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | ASP.NET | Other
asked 2024-12-03T11:08:10.6566667+00:00
Kuler Master 406 Reputation points
commented 2025-08-13T03:50:08.4233333+00:00
Raymond Huynh (WICLOUD CORPORATION) 715 Reputation points Microsoft External Staff
5 answers

Blazor and ValidationGroups

I am in ASP.NET since the first version of .NET Framework and I am used to some features that are missing now. Please notice that I've just recently moved to Blazor. Currently, I am wondering why the ValidationGroups are not part of it. I have a kind…

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | ASP.NET | Other
asked 2025-01-04T13:22:46.66+00:00
Kuler Master 406 Reputation points
commented 2025-08-11T08:54:13.3933333+00:00
Jack Dang (WICLOUD CORPORATION) 1,275 Reputation points Microsoft External Staff
1 answer

Set default culture

Hello guys, I am using Microsoft.Extensions.Localization (8.0.11) but for some reason the following code does not work as expected. As you see, I expect the German to be default language but it's always English. Am I missing something? var…

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
asked 2025-02-07T10:08:15.3666667+00:00
Kuler Master 406 Reputation points
commented 2025-08-11T08:45:23.3233333+00:00
Jack Dang (WICLOUD CORPORATION) 1,275 Reputation points Microsoft External Staff
5 answers

Multiple App.Razor components

Hello, Is it possible to have an additional App.razor file that I can use for e.g. Admin area only? Currently, if I create a new folder named Admin and create a new layout there, it inherits from the existing App.razor and linked css files. Basically, I…

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | ASP.NET | Other
asked 2025-01-31T08:47:54.43+00:00
Kuler Master 406 Reputation points
commented 2025-08-11T07:44:39.7666667+00:00
Jack Dang (WICLOUD CORPORATION) 1,275 Reputation points Microsoft External Staff
1 answer

Getting a System.ObjectDisposedException: The CancellationTokenSource has been disposed in .NET 8

I'm working on a new Blazor app, with server-side and WebAssembly projects in the VS solution. When I debug the app I get a, "Unhandled exception has occurred" message in the bottom of the page. Looking at my event viewer I see this, which…

Developer technologies | .NET | Blazor
asked 2025-08-06T21:52:54.0233333+00:00
Falanga, Rod, DOH 290 Reputation points
edited an answer 2025-08-11T00:01:03.0733333+00:00
Bruce (SqlWork.com) 79,526 Reputation points Volunteer Moderator
2 answers

How can I host a shared Blazor Custom Elements app on a different Domain?

I tried to publish a Blazor app with custom elements on a Static Web App and reference it from another deployed app. Just added the necessary script tags pointing to the static web app. It does not work. Looking into the blazor.webassembly.js…

Developer technologies | .NET | Blazor
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,222 questions
asked 2023-03-27T18:06:00.6133333+00:00
László Tóth 0 Reputation points
commented 2025-08-06T16:13:30.65+00:00
Bruce (SqlWork.com) 79,526 Reputation points Volunteer Moderator
1 answer

is there a way to share in-memory caching between two .Net Core Web APIs

My application right now needs to cache small amount of referenced data, but various data. Thinking of using in-memory Cache instead of REDIS or NCache. I hope this is a good decision. If I go with in-memory Cache and implement it, is it possible…

Developer technologies | .NET | Blazor
asked 2022-09-11T17:37:43.61+00:00
biprism 51 Reputation points
answered 2025-08-02T17:04:14.4066667+00:00
Bruce (SqlWork.com) 79,526 Reputation points Volunteer Moderator
2 answers

Blazor Web App using the Razor pages (.razor) from RCL

Hello, I'm trying to have the Razor Class Library (RCL) to serve the Razor pages (.razor) into Blazor Web App. First, I created a RCL project called RazorClassLibrary and simply added a new Razor compnent (.razor page). The page is under a folder called…

Developer technologies | .NET | Blazor
asked 2025-07-28T12:35:51.12+00:00
Balu Raju 81 Reputation points
answered 2025-08-01T13:00:10.87+00:00
Balu Raju 81 Reputation points
3 answers

Server connection problem on a blazor site

Hi, I have made this app in blazor: Index Occasionally, I encounter this error: "Attempting to connect to the server." Do you know how to solve it? regards, Saeed

Developer technologies | .NET | Blazor
Developer technologies | ASP.NET | Other
asked 2025-01-04T20:52:03.84+00:00
Saeed Pooladzadeh 241 Reputation points
commented 2025-08-01T06:25:10.7966667+00:00
Danny Nguyen (WICLOUD CORPORATION) 1,030 Reputation points Microsoft External Staff
1 answer

Razor Component Return Html but not Data from api call until page refresh manually

Hello There, blazor Web App .net 8 Interactive Render Mode Auto. sometimes, page load in razor in blazor wasm side the html content appears correctly but api doesnt get called and data not get loaded but I can see in command prompt window ef core…

Developer technologies | .NET | Blazor
asked 2025-07-29T05:12:07.5666667+00:00
Prathamesh Shende 511 Reputation points
edited an answer 2025-07-31T16:26:22.9833333+00:00
Bruce (SqlWork.com) 79,526 Reputation points Volunteer Moderator