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

Sort by: Updated
1 answer

Blazor Server APP

I’m building a Blazor Server application, which uses WebSockets for real-time communication (via SignalR). By default, Blazor uses MessagePack as the serialization protocol, which results in a binary transfer format. For debugging and interoperability…

Developer technologies .NET Blazor
asked 2025-06-26T21:08:52.5+00:00
Selvaraj, Deepak 0 Reputation points
edited an answer 2025-06-27T16:26:10.02+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2 answers

How to format razor pages in blazor in visual studio 2022

Hi, we are having problems with formatting after upgrade to visual studio 2022. In visual studio 2019 we could format our razor files pretty well, in visual studio it looks really bad. We cannot use 2019 anymore because of the .net 7.

Developer technologies .NET Blazor
asked 2023-02-02T09:09:50.9866667+00:00
Ante Gavranovic 10 Reputation points
edited an answer 2025-06-24T07:46:04.42+00:00
Tomáš Filip 0 Reputation points
2 answers

How to Rename a Solution and Projects in Visual Studio 2022 Without Affecting Functionality?

I have a working application that includes Blazor Server, Blazor WASM, and an API. I want to change the names of the solution and the projects while ensuring that the current application remains unaffected. What is the easiest and problem-free way to…

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Blazor
Developer technologies C#
asked 2024-11-29T07:38:49.4766667+00:00
Cenk 1,036 Reputation points
commented 2025-06-24T07:00:57.9833333+00:00
Danny Nguyen (WICLOUD CORPORATION) 165 Reputation points Microsoft External Staff
2 answers

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…

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Blazor
Developer technologies .NET .NET MAUI
asked 2024-05-08T03:16:48.12+00:00
م.طارق علي 5 Reputation points
commented 2025-06-24T06:58:08.4766667+00:00
Danny Nguyen (WICLOUD CORPORATION) 165 Reputation points Microsoft External Staff
3 answers One of the answers was accepted by the question author.

What does scoped lifetime for a service mean in Blazor (server)?

This is for Blazor (server). According to this documentation, session scope for a service in Blazor (server side) means: Scoped services aren't reconstructed when navigating among components on the client, where the communication to the server takes…

Developer technologies .NET Blazor
asked 2023-05-07T16:24:50.2+00:00
David Thielen 3,211 Reputation points
commented 2025-06-05T18:46:18.1933333+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
1 answer

How to implement both a user registration and log in in a blazor webassembly asp.net core 8 using Azure AA B2C

I have followed this guidance: Secure an ASP.NET Core Blazor WebAssembly standalone app with Azure Active Directory…

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Blazor
Microsoft Security Microsoft Entra Microsoft Entra ID
asked 2023-11-21T13:48:50.3833333+00:00
risto l 0 Reputation points
edited a comment 2025-06-05T16:58:18.3666667+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
1 answer

C# Blazor .NET 8 localstorage deleted on page refresh F5

Hi In Blazor .NET7 I use localstorage to save a JWT for all my users claims etc. Works perfectly. Upgraded to .NET8 the JWT still works, but, if you refresh your browser page (F5) the localstorage is deleted and I get a 401 unauthorized. In .NET7 this…

Developer technologies .NET Blazor
Developer technologies .NET Other
Developer technologies C#
asked 2024-10-17T08:40:02.0933333+00:00
Kinga 0 Reputation points
commented 2025-06-04T14:53:12.43+00:00
Alex 0 Reputation points
1 answer

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,173 questions
asked 2023-03-27T18:06:00.6133333+00:00
László Tóth 0 Reputation points
commented 2025-05-27T13:32:49.5366667+00:00
Michael Aston 0 Reputation points
2 answers

Adding Blazor Identity to existing Blazer project fails with a 'null path' exception

Hi! I have the following: .Net SDK 9 Visual Studio Community 2022 v 17.12.3 Windows v10.0.19044 Blazer Server App When I try to add the Blazor Identity "scaffolding" I get a "There was an error running the selected code generator:…

Developer technologies .NET Blazor
Developer technologies Visual Studio Other
asked 2024-12-18T11:16:39.07+00:00
kodo65 10 Reputation points
answered 2025-05-26T04:55:20.29+00:00
kodo65 10 Reputation points
2 answers

how-to-forcefully-set-ies-compatibility-mode-off-from-the-server-side

Hi, I have an application that opens in Edge wih IE mode due to organization policy. From that application we open Blazor application in new tab/window. Due to redirection it also opens in Edge with IE mode and Blazor does'nt wor in IE mode. Please help…

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Blazor
Microsoft Edge Microsoft Edge development
asked 2023-12-22T16:15:39.6833333+00:00
Arti Shukla 0 Reputation points
commented 2025-05-06T16:53:19.6366667+00:00
Rob Ainscough 31 Reputation points
3 answers

Fluent Ui Blazor Component Library

Is there a sample of how to implement of Carousel Ui Design Pattern with C# Fluent Ui Blazor?

Developer technologies .NET Blazor
asked 2024-12-08T01:29:46.7266667+00:00
Henry Stawski 0 Reputation points
edited a comment 2025-05-05T15:35:44.0366667+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
5 answers

How to fix Add-Migration problem?

Hi, I am trying to add another entity to the database in my e-commerce solution which includes client and admin projects using Blazor WASM and Server, Asp.Net Core API, and data access projects. However, I am getting an error message as shown below: How…

Developer technologies .NET Entity Framework Core
Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Blazor
Developer technologies C#
asked 2024-06-24T17:33:35.47+00:00
Cenk 1,036 Reputation points
answered 2025-05-02T12:02:09.08+00:00
Miyari 003 0 Reputation points
2 answers

AmbiguousMatchException in net8 Blazor web app

I am encountering an AmbiguousMatchException error in my client-side Blazor web app. The error message says "The request matched multiple endpoints. Matches: Fallback {*path:nonfile}". I tried to add app.razor containing this lines…

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Blazor
Developer technologies .NET Other
asked 2024-01-06T18:25:33.9666667+00:00
ayman awadallah 30 Reputation points
answered 2025-04-21T01:11:25.47+00:00
master_lam 0 Reputation points
2 answers

Blazor Server .NET 8 authorization Dependency Injection User Settings

I have a IUserSettings interface to use between Blazor and a Desktop. I have a task in the interface called Task GetUserSettingsAsync(AuthenticationStateProvider authenticationStateProvider). Once the website comes back from Microsoft Entra, I want to…

Developer technologies .NET Blazor
asked 2025-04-03T21:03:38.8433333+00:00
Dennis Vossen 1 Reputation point
edited a comment 2025-04-19T15:51:03.05+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2 answers One of the answers was accepted by the question author.

I have a Blazor App for .NET using the server mode. I now want to add wasm mode to it as well. What changes are required?

I started my project that uses the Blazor Server template from Visual Studio 2022 for .NET8. I now realize I want to add a wasm project to it as well so can take advantage of auto mode. What changes are required in the server project so my components can…

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Blazor
asked 2024-08-30T06:26:59.27+00:00
Amjad Khan 41 Reputation points
edited a comment 2025-04-17T15:15:52.8566667+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
1 answer

Line number and path or file name missing when logs maintain in azure applicationinsights for blazorWASM application

I had develop blazorWASM application logs using these links. I had used .NET core 6.0.I had use ILoggers<Type> logger…

Developer technologies .NET Blazor
asked 2025-04-03T12:46:56.4833333+00:00
ramesh P 0 Reputation points
commented 2025-04-10T19:20:34.75+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2 answers

How to set up Custom Authentication State in Blazor Server .net 8 or 9

Hi, I set authentication settings in Blazor Server .NET 9. After setting it, I put the [Authorize] attribute on the API call in the controller. So it will fetch the authorization header of the access token, and the API will be authorized to show…

Developer technologies .NET Blazor
asked 2025-03-31T16:12:15.5566667+00:00
Prathamesh Shende 441 Reputation points
edited an answer 2025-04-03T16:07:47.9366667+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2 answers

How to use a blazor server app with a web api for authentication and persist authentication across circuits?

I originally posted a comment under this question as I am following a similar scenario: https://learn.microsoft.com/en-us/answers/questions/1454927/how-to-use-a-blazor-server-app-with-a-web-api-for I have a custom AuthenticationStateProvider which is…

Developer technologies .NET Blazor
asked 2025-03-30T22:59:33.5866667+00:00
Andrew White 0 Reputation points
commented 2025-04-02T17:24:46.0866667+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
1 answer

Streaming Issue with Blazor WebAssembly and Sematic Kernel and Open AI

I am using Blazor WebAssembly connecting to Azure Open AI. When I try to stream the response. I get the error message below. This is my code: public partial class HomeView { [Inject] Kernel Kernel { get; set; } private string message; private string…

Developer technologies .NET Blazor
asked 2025-03-31T21:47:02.99+00:00
RiSchone 0 Reputation points
edited the question 2025-04-01T01:15:47.14+00:00
Anonymous
2 answers One of the answers was accepted by the question author.

Create Identity Provider without Identity Server

Hi, I am learning something new and want to develop the identity provider similar to IdentityServer4. I am making quite some progress. The client project is Blazor OIDC, and Microsoft does it on Community Standup live. Auth Server is…

Developer technologies .NET Blazor
asked 2025-03-26T09:54:59.88+00:00
Prathamesh Shende 441 Reputation points
commented 2025-03-31T15:58:47.5766667+00:00
Prathamesh Shende 441 Reputation points