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

Sort by: Updated
2 answers

Why does cached data disappear when using forceLoad in a Blazor app?

In a Blazor application, cached results are stored using IMemoryCache through a CacheMemory wrapper. When navigating to another page with NavigateTo(forceLoad: true), the destination page does not have access to the cached data. However, when navigating…

Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
asked 2025-09-30T13:59:18.2166667+00:00
Obakeng Aphane 20 Reputation points
commented 2025-10-13T04:28:12.12+00:00
Danny Nguyen (WICLOUD CORPORATION) 3,500 Reputation points Microsoft External Staff
4 answers

Blazor Interop for Mozilla pdf.js

Anyone managed to create a JS interop for https://github.com/mozilla/pdf.js I am looking for robust viewer solution to show PDF files. Thank you, D

Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
asked 2021-07-18T17:16:17.257+00:00
DinoN 1 Reputation point
commented 2025-10-11T18:50:30.3566667+00:00
niico 55 Reputation points
1 answer One of the answers was accepted by the question author.

How to ignore ETag checking and fix this error

I read from and write to blob content in Azure blob storage. File is being changed (new content is getting appended to the file) at the same time while it is being downloaded. I get error in the below stream.Read() line. Which I believe is because of…

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,261 questions
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,651 questions
asked 2023-01-18T12:50:17.69+00:00
Sarah 161 Reputation points
commented 2025-10-11T16:13:29.0266667+00:00
Bruce (SqlWork.com) 81,191 Reputation points Volunteer Moderator
2 answers

Anti Forgery with Blazor Server App

we upgraded our blazor server app from .Net 6 to .Net 8 following the instructions from https://free.blessedness.top/en-us/aspnet/core/migration/70-80?view=aspnetcore-8.0&tabs=visual-studio Below is the snippet from the Program.cs where…

Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
asked 2024-02-09T16:57:41.2+00:00
Balu Raju 81 Reputation points
commented 2025-10-09T11:53:44.8033333+00:00
Williams, Billy P 0 Reputation points
2 answers One of the answers was accepted by the question author.

Structuring a .NET Core 9 Blazor + API Architecture for Microservices Readiness and Best Practices

Hello, I am working on a wiki-style encyclopedic resource application designed to centralize and organize documentation related to the universe of my fantasy novel. This project is personal and primarily has a pedagogical purpose (training myself on…

Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
asked 2025-09-04T10:26:11.2466667+00:00
Laurent Guigon 331 Reputation points
accepted 2025-09-30T08:10:03.6633333+00:00
Laurent Guigon 331 Reputation points
1 answer One of the answers was accepted by the question author.

How to differentiate layout for same route in .NET 9 MAUI Blazor Hybrid App?

I'm building a .NET 9 MAUI Blazor Hybrid App and I want to use the same route (@page "/home") in both the shared project and the device-specific project. However, I want the layout and components to be different depending on whether the app is…

Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
asked 2025-09-29T08:45:28.58+00:00
Obakeng Aphane 20 Reputation points
accepted 2025-09-29T13:33:12.6433333+00:00
Obakeng Aphane 20 Reputation points
2 answers

aspire app giving 431 error

I am getting a 431 error in aspire, but it is working for other my team members. for the newly created aspire app, I am getting the same error. I cleaned the solution cleaned the cookies and all but still nothing worked.

Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
asked 2025-09-11T21:48:12.35+00:00
Ghongde,Shivanand 0 Reputation points
commented 2025-09-17T04:05:52.0366667+00:00
Varsha Dundigalla(INFOSYS LIMITED) 2,700 Reputation points Microsoft External Staff
1 answer

Blazor MAUI ios blank screen

Hi, I have created a stock Blazor MAUI project. It can run fine on Windows, Android and Mac. When I try to run it on IOS, it boots and then just displays a blank screen. Is this a known issue? How to fix that? TIA,

Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
Developer technologies | .NET | .NET MAUI
asked 2022-12-20T12:19:06.837+00:00
AdamZebrowski-4736 1 Reputation point
commented 2025-09-16T06:30:32.79+00:00
Harry Vo (WICLOUD CORPORATION) 3,355 Reputation points Microsoft External Staff Moderator
5 answers

Blazor - Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0

Hi, I have an issue with a Blazor page. Sometimes I receive the following error message on the browser's console view: Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0 This is strange, because this error message…

Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,651 questions
asked 2022-03-29T14:57:37.95+00:00
Gábor Varga 36 Reputation points
answered 2025-09-14T09:49:05.96+00:00
Mohammad Sherafat 0 Reputation points
0 answers

NavMenu not show icons

I create Blazor WebAssembly project in vs 2019. but , None of the icons on the menu are displayed. Who can help me , thanks .

Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
asked 2022-02-06T16:30:27.03+00:00
929Free 641 Reputation points
commented 2025-09-13T21:56:16.56+00:00
hivindu amaradeva 0 Reputation points
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 | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
Developer technologies | ASP.NET | Other
Developer technologies | ASP.NET | Other
A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
3,620 questions
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,651 questions
asked 2025-01-20T14:00:42.1733333+00:00
Kuler Master 406 Reputation points
commented 2025-09-03T06:30:29.0166667+00:00
Danny Nguyen (WICLOUD CORPORATION) 3,500 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
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
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) 2,400 Reputation points Microsoft External Staff
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
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
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
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
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
asked 2024-03-17T23:34:40.2933333+00:00
David Thielen 3,216 Reputation points
commented 2025-08-16T20:28:30.1033333+00:00
Bruce (SqlWork.com) 81,191 Reputation points Volunteer Moderator
1 answer

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
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,267 questions
asked 2024-10-31T00:28:08.82+00:00
JohnM 25 Reputation points
answered 2025-08-26T09:54:30.4033333+00:00
Srikanth Reddy Bandi 260 Reputation points Microsoft External Staff Moderator
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 | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
Developer technologies | ASP.NET | Other
Developer technologies | ASP.NET | Other
A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
3,620 questions
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) 2,215 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
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
asked 2024-12-31T08:20:29.7566667+00:00
Cenk 1,041 Reputation points
commented 2025-08-13T03:59:18.4233333+00:00
Raymond Huynh (WICLOUD CORPORATION) 2,215 Reputation points Microsoft External Staff
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 | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,651 questions
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) 2,215 Reputation points Microsoft External Staff
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
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
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) 2,215 Reputation points Microsoft External Staff
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
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
1,685 questions
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) 81,191 Reputation points Volunteer Moderator