1,647 questions with Blazor tags

Sort by: Updated
0 answers

Blazor isn't listed in Visual Studio Community 2022

Hello I'm trying to start a new Blazor WebAssembly App in Visual studio 2022 but it isn't listed there. I did run dotnet new --list in the command line and it shows both Blazor WebAssembly App and Blazor Server App listed so I'm not sure why it isn't…

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,647 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,360 questions
asked 2025-01-19T12:33:04.3433333+00:00
FabioM 0 Reputation points
2 answers One of the answers was accepted by the question author.

Blazor .Net 9 Default template simple usage of a service - porting from an earlier version

I tried to port this simple project: https://github.com/JWealthall/BlazorWindowResize to .net 9.0 So, I created a simple sample at: https://github.com/KKacer/BlazorTestWindowSize I'm trying to understand the usage and changes I need to do in the 2…

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,647 questions
asked 2025-01-16T18:50:15.5666667+00:00
Kasrak 46 Reputation points
accepted 2025-01-17T10:29:21.94+00:00
Kasrak 46 Reputation points
2 answers One of the answers was accepted by the question author.

Error RZ10012 when adding a component in blazor

Hello, I'm trying to learn Blazor with a youtube video. I have this page : MainLayout.razor @inherits LayoutComponentBase <div class="page"> <div class="sidebar"> <NavMenu /> </div> …

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,647 questions
asked 2023-01-18T12:23:31.0866667+00:00
Laurent Guigon 311 Reputation points
commented 2025-01-16T14:22:35.48+00:00
Oliver_P 15 Reputation points
3 answers

AuthenticationStateProvider propagates incomplete identity to WebAssembly with Blazor in .net 8

I have a component using auto render mode: @attribute [RenderModeInteractiveAuto] I inject the AuthenticationStateProvider: @inject Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider _auth Now, in my code, if I do something like…

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,647 questions
asked 2023-10-25T21:14:05.82+00:00
Rabe, Jens 35 Reputation points
answered 2025-01-15T10:13:21.9466667+00:00
Dunce 41 Reputation points
2 answers

Why does the onclick event not work, in my razor pages hosted blazor component, in .net 7.0?

I've used the following code in multiple blazor web assembly applications hosted on a razor pages page under .net 5.0 and .net 6.0 before now. An application I was forced to upgrade to .net 7.0 has rendered the onclick command completely useless What…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,740 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,647 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,208 questions
asked 2023-01-19T00:23:45.6266667+00:00
The Acme Cheese Company 0 Reputation points
answered 2025-01-14T00:12:39.4066667+00:00
Alex Stewart 0 Reputation points
1 answer

Best practices for implementing Notifications and Streaming (Gen AI-enabled chats) in Blazor Web App

Need some architectural guidance. I am building a B2C solution using Blazor Web App model. The entire stack is C# and runs on Azure. I am just trying to understand some best practices for integrating the following capabilities: Push Notifications…

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
82 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,647 questions
asked 2025-01-11T13:56:34.58+00:00
Manoj Ganapathi 0 Reputation points
answered 2025-01-13T22:31:25.7833333+00:00
Bruce (SqlWork.com) 69,501 Reputation points
2 answers

Why can't my generic Blazor app read the LocalDb for Identity?

I wanted to see how a new Blazor Web app uses the LocalDb that is created when you create a new application that uses Individual Accounts during the project creation process. In my AppSettings.json file it created this connection…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,740 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,647 questions
asked 2025-01-04T21:28:57.7166667+00:00
Rod Falanga 566 Reputation points
commented 2025-01-13T01:40:49.01+00:00
Tiny Wang-MSFT 3,066 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Disable Information Logging

Hello, How do I disable the logging so I don't see those odd messages in the console (Google Chrome) ?? Whenever I run my blazor 8.0 app the following messages are displayed: Information: Normalizing '_blazor' to ' LINK Information: WebSocket connected…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,740 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,647 questions
asked 2024-12-16T18:26:28.2633333+00:00
Kuler Master 386 Reputation points
commented 2025-01-11T18:48:27.4+00:00
Robert Howell 0 Reputation points
1 answer One of the answers was accepted by the question author.

Visual Studio 2022 Blazor Server project assigning random port

I am creating a .NET 9 Blazor Web App project using Visual Studio 2022 (17.12.1). I am authenticating using MS Graph to an Azure Web App which requires a consistent URL as a callback and have done this many times with earlier Blazor Server projects using…

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,647 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,360 questions
asked 2025-01-07T15:38:05.0533333+00:00
Scott Stoecker 20 Reputation points
accepted 2025-01-09T12:12:40.5366667+00:00
Scott Stoecker 20 Reputation points
1 answer

Blazor hangs when debugging with authentication

Am I the only one who experience that 9 of 10 times Blazor hangs with this message when I use authentication, and after I have logged in?   Any hints on how to get past this issue?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,053 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,647 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,208 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,017 questions
asked 2024-04-07T11:22:21.7633333+00:00
Finn Arildsen 76 Reputation points
answered 2025-01-08T18:11:07.2433333+00:00
Bruce (SqlWork.com) 69,501 Reputation points
1 answer

How to bypass "Pick an account" popup after Sign out

Hello all, Is there any possibility to bypass the "Pick user popup" after Sign out with Endpoint v2.0 at Azure AD? We need to execute automatic sign out at Blazor app while user is not active, but we got redirect at the popup and the user 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,647 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,899 questions
asked 2023-10-25T08:23:23.9666667+00:00
JT 5 Reputation points
commented 2025-01-08T03:03:36.1966667+00:00
Stephen Song 0 Reputation points
1 answer

RegularExpression for either valid email or username from the comma separated list

It's about the login form where some clients must enter their email and only few others their name. Currently I have the following: [Required(ErrorMessageResourceName = "Validation_RequiredField", ErrorMessageResourceType =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,740 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,647 questions
asked 2024-12-30T11:03:03.83+00:00
Kuler Master 386 Reputation points
edited the question 2025-01-07T05:43:33.75+00:00
Jack J Jun 24,626 Reputation points Microsoft Vendor
2 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

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,647 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,566 questions
asked 2025-01-04T20:52:03.84+00:00
Saeed Pooladzadeh 251 Reputation points
edited an answer 2025-01-06T16:11:00.8733333+00:00
Bruce (SqlWork.com) 69,501 Reputation points
4 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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,740 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,647 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,566 questions
asked 2025-01-04T13:22:46.66+00:00
Kuler Master 386 Reputation points
answered 2025-01-06T03:42:31.7266667+00:00
Zhi Lv - MSFT 32,841 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Blazor adds random attributes

Hello guys and all the best for the new year I am struggling with these strange attributes that Blazor keeps adding to all elements. I tried to find more about this behavior but none of the proposed solutions worked for me. For instance, MS suggests…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,740 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,647 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,566 questions
asked 2025-01-02T11:02:55.0933333+00:00
Kuler Master 386 Reputation points
edited the question 2025-01-03T13:00:50.49+00:00
Kuler Master 386 Reputation points
1 answer One of the answers was accepted by the question author.

Response status code does not indicate success: 404 (Not Found)

I get the following error while calling an api in my Blazor application: Following is the code where the error is pointing: And following is the calling api where request is made: What went wrong here? Any suggestions? Thanks, Puneet Chandiok

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,740 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,647 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,208 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
364 questions
asked 2025-01-03T04:04:52.01+00:00
Puneet Chandiok 20 Reputation points
commented 2025-01-03T06:55:32.61+00:00
SurferOnWww 3,701 Reputation points
2 answers

Blazor server JSRuntime call error function undefined

.net 8 Hello! We have a common error, but cant reproduce it in the browser. This is our code: protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { try { //so it do not scroll…

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,647 questions
asked 2024-12-30T14:22:35.26+00:00
Luc Gosso 5 Reputation points
accepted 2025-01-02T10:48:50.18+00:00
Luc Gosso 5 Reputation points
2 answers One of the answers was accepted by the question author.

How do I save file on form submit

Hello, As mentioned in the title, I want to save the file to the server. In the past, we were using SaveAs but in Blazor I can't get a reference of PostedFile directly. <div class="row pb-3"> <div class="col"> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,740 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,647 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,566 questions
asked 2024-12-27T16:34:04.0766667+00:00
Kuler Master 386 Reputation points
accepted 2025-01-02T10:33:24.8666667+00:00
Kuler Master 386 Reputation points
1 answer

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:…

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,647 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,360 questions
asked 2024-12-18T11:16:39.07+00:00
kodo65 0 Reputation points
edited the question 2025-01-02T02:00:44.11+00:00
Jack J Jun 24,626 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Best approach for Mobile app development

Hello guys, I was wondering what is the best project template for mobile app development. I was reading little bit about the .NET MAUI but I am not quite sure if it's better than regular Android App or Mobile App (Xamarin). What is your experience with…

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,647 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,834 questions
asked 2024-12-31T12:12:52.3266667+00:00
Kuler Master 386 Reputation points
commented 2025-01-01T23:22:22.5+00:00
Bruce (SqlWork.com) 69,501 Reputation points