1,672 questions with Blazor tags

Sort by: Updated
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…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
779 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
C#
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,431 questions
asked 2024-06-24T17:33:35.47+00:00
Cenk 1,031 Reputation points
answered 2025-05-02T12:02:09.08+00:00
Miyari 003 0 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…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,554 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
asked 2023-12-22T16:15:39.6833333+00:00
Arti Shukla 0 Reputation points
edited a comment 2025-04-25T16:55:56.3566667+00:00
Rob Ainscough 31 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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
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) 75,051 Reputation points
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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
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) 75,051 Reputation points
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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
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) 75,051 Reputation points
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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
asked 2025-03-31T16:12:15.5566667+00:00
Prathamesh Shende 421 Reputation points
edited an answer 2025-04-03T16:07:47.9366667+00:00
Bruce (SqlWork.com) 75,051 Reputation points
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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
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) 75,051 Reputation points
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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
asked 2025-03-31T21:47:02.99+00:00
RiSchone 0 Reputation points
edited the question 2025-04-01T01:15:47.14+00:00
Zhi Lv - MSFT 33,196 Reputation points Microsoft External Staff
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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
asked 2025-03-26T09:54:59.88+00:00
Prathamesh Shende 421 Reputation points
commented 2025-03-31T15:58:47.5766667+00:00
Prathamesh Shende 421 Reputation points
3 answers One of the answers was accepted by the question author.

Blazor WASM JS Calls with an Object Argument Work in VS Debug But Not a Published Release

I have a Blazor WASM app that uses JSRuntime to Get/Put IndexedDB data (mockup below). Calls to "Put" functions that pass an object (not a native type) to be stored work fine in the VS Community 2022 debugger, but when I run a published…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
asked 2025-03-25T18:48:29.5166667+00:00
Steve Rehling 125 Reputation points
accepted 2025-03-31T12:09:50.7233333+00:00
Steve Rehling 125 Reputation points
1 answer

Deploying .NET 8 Blazor Interactive server to an "app" in IIS

Am trying to install a blazor 8 server app on IIS. Everything works fine within VS2022, but once I deploy the files to IIS I get some errors. I've tried <base href="/BlazorApp4/" /> or <base href="/" /> and …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
asked 2024-10-25T20:19:56.91+00:00
Steve Wasielewski 5 Reputation points
commented 2025-03-26T14:00:10.49+00:00
Kyler Brown 0 Reputation points
2 answers

In Blazor Server App, getting 404 error on page refresh

I am working on a Blazor server app with ASP.NET Core MVC and MudBlazor for design. My panel pages are in a PanelProject. I face the following issues: Whenever I try to refresh a page, I get a 404 error. Sometimes, I get a 403 error without knowing…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
asked 2024-03-11T06:57:18.34+00:00
Mrbanad 30 Reputation points
commented 2025-03-25T12:07:52.5266667+00:00
AgaveJoe 30,036 Reputation points
1 answer

Exception when linking to Microsoft Store Purchase API library from Blazor MAUI Windows App

Hi, I am have written multile Microsoft Store Apps in the UWP and WPF frameworks and published them to the Store. These apps all have to and do call the Microsoft Store Purchase API. Now I'm building a Blazor MAUI Store App and have found apps in the…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,090 questions
Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
382 questions
asked 2024-09-06T17:05:40.2066667+00:00
Richard Freytag 66 Reputation points
commented 2025-03-07T18:06:56.9866667+00:00
Marco Medrano 0 Reputation points
1 answer

Blazor server logout on SignalR connection break

My Blazor server-side application logs out the user whenever the SignalR connection breaks. For example, when I lock my phone for half an hour and then return to the site, I'm logged out. How can I prevent this from happening?

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
839 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
asked 2024-06-19T20:07:08.9166667+00:00
Mrbanad 30 Reputation points
commented 2025-03-01T23:32:47.47+00:00
Bruce (SqlWork.com) 75,051 Reputation points
4 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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,598 questions
asked 2025-01-31T08:47:54.43+00:00
Kuler Master 406 Reputation points
commented 2025-02-28T17:22:57.9366667+00:00
Bruce (SqlWork.com) 75,051 Reputation points
16 answers One of the answers was accepted by the question author.

Blazor app crashes when debugging after windows secutiry updates

Afert 2023 march 14 updates my app stop debugging. If I start it without debugging it works ok, if I start it debugging it crashes at startup. The error is the following: Microsoft.WebAssembly.Diagnostics.DevToolsProxy[0] DevToolsProxy::Run: Exception…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
asked 2023-03-15T11:27:48.58+00:00
Rossend Bruch 255 Reputation points
commented 2025-02-25T00:53:31.9633333+00:00
Pier Castonguay 0 Reputation points
4 answers

Linq ThenInclude Where Problem

Hello, I am trying to get only IsActive=1 data with this Linq; _db.Orders.Include(d => d.OrderDetails).ThenInclude(v => v.Vendor).Where(o=> o.OrderDetails.Any(od => od.IsActive == 1)).ToListAsync(); But the query brings all the…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
C#
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,431 questions
asked 2022-09-15T07:13:13.197+00:00
Cenk 1,031 Reputation points
commented 2025-02-20T15:16:53.1066667+00:00
Alex Baggett 0 Reputation points
0 answers

How to fixTypeLoadException: Could not load type 'Microsoft.Graph.IAuthenticationProviderOption' from assembly 'Microsoft.Graph.Core, Version=3.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

I am using Microsoft Graph 5.69 <PackageReference Include="Microsoft.Graph" Version="5.69.0" /> Each time, I register the Microsoft Graph service in program.cs …

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,540 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
asked 2025-02-18T06:59:59.4866667+00:00
Eric Lauwers 0 Reputation points
commented 2025-02-19T07:09:28.2566667+00:00
Zhi Lv - MSFT 33,196 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

How to use a blazor server app with a web api for authentication?

I've search the web for a simple tutorial for this but I can't seem to find this exact scenario. I have the following projects: WebApi This is a standard .NET 8.0 web api with individual accounts authentication. I've created everything using the…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
asked 2023-11-30T19:45:34.3966667+00:00
António Albuquerque 25 Reputation points
commented 2025-02-16T19:45:11.7+00:00
Andrew White 0 Reputation points