1,636 questions with Blazor tags

Sort by: Updated
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,636 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,307 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,152 questions
asked 2024-12-18T11:16:39.07+00:00
kodo65 0 Reputation points
commented 2024-12-25T08:20:56.4333333+00:00
Tianyu Sun-MSFT 31,956 Reputation points Microsoft Vendor
1 answer

How do I fix static assets not showing on implementing project with .Net9

Hi, I am having an issue in my app when trying to implement a Nuget package. My project has the following configuration: <ItemGroup> <!-- Include the JavaScript file in the NuGet package --> <Content…

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,636 questions
asked 2024-12-24T20:51:38.42+00:00
William Mendoza 0 Reputation points
edited an answer 2024-12-25T06:59:59.32+00:00
Ruikai Feng - MSFT 2,586 Reputation points Microsoft Vendor
1 answer

Android Apk not installed

dotnet publish -f:net9.0-android -c:Release /p:AndroidSigningKeyPass=math@24 /p:AndroidSigningStorePass=math@24 When I try to install apk file "on my Android phone I get below error "App not installed as app isnt compatible with your…

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,636 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,763 questions
asked 2024-12-23T21:42:31.97+00:00
Kalyan A 335 Reputation points
answered 2024-12-25T03:03:55.3866667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 77,726 Reputation points Microsoft Vendor
2 answers

Blazor 8.0 NavigateTo throws an exception

Hello, I have a language selector that calls the following code and it works like a charm. On other hand, I want to change the language from within the MainLayout on Initialized event (async) but then the very same code throws an exception of type…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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,636 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,152 questions
asked 2024-12-19T08:59:18.7133333+00:00
Kuler Master 306 Reputation points
edited a comment 2024-12-24T16:32:50.1733333+00:00
Bruce (SqlWork.com) 68,486 Reputation points
1 answer One of the answers was accepted by the question author.

Error After Upgrading the Blazor Project WASM to .Net 8 to .Net 9

I got this errors While Upgrading my Blazor Web assembly Project to .Net 8 to .Net 9 Error Message=   Source=   Stack Trace:   at https://localhost:7123/_framework/dotnet.runtime.o8gq1i8bk6.js:3:96088 This Error  I got in console MONO_WASM:…

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,636 questions
asked 2024-12-24T05:47:54.8166667+00:00
Satyasai Gunnam 40 Reputation points
accepted 2024-12-24T09:54:09.16+00:00
Satyasai Gunnam 40 Reputation points
0 answers

js Static web assets in .net9 appera blank in the browser

I can navigate to my file from the browser but the file is blank. the reference in the obj folder is correct, and the file generated inside the .nuget folder is also correct and has all the methods, but when accesing the file from the browser it appears…

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,636 questions
asked 2024-12-22T15:37:39.5833333+00:00
William Mendoza 0 Reputation points
commented 2024-12-24T08:59:03.6233333+00:00
Ruikai Feng - MSFT 2,586 Reputation points Microsoft Vendor
2 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.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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,636 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,547 questions
asked 2024-12-03T11:08:10.6566667+00:00
Kuler Master 306 Reputation points
answered 2024-12-24T05:36:01.05+00:00
Ping Ni-MSFT 4,805 Reputation points Microsoft Vendor
2 answers

not getting values on form submit

@page "/login" @using System.ComponentModel.DataAnnotations <h3>Login</h3> <div class="card" style="max-width: 400px; margin: auto; margin-top: 50px;"> <div class="card-body"> <h5…

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,636 questions
asked 2024-12-21T14:00:11.6066667+00:00
Mayur Nagrale 0 Reputation points
edited the question 2024-12-23T02:07:09.8933333+00:00
Tiny Wang-MSFT 2,976 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Learning blazor, stuck on todo page

I was following the blazor learning path. I was on the 3. level: https://learn.microsoft.com/en-us/training/modules/build-blazor-todo-list/3-exercise-data-binding I created a Todo.razor page according to the instructions but when I run the project 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,636 questions
Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
11 questions
asked 2024-12-19T10:03:14.88+00:00
Murat Şeşen 20 Reputation points
edited a comment 2024-12-20T06:09:19.7866667+00:00
Pradeep M 4,560 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Response status code: 500 login.js:18 Error: {"error":"Internal server error","details":"Login failed for user '<token-identified principal>'."}

i published a blazor web app in azure server. It starts normally but when i try to log in with the credentials and the logic i created locally (and worked) i get the error. This is my login,js: async function handleLogin(loginModel) { try { …

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,636 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,093 questions
asked 2024-12-10T13:20:16.6666667+00:00
Stelios 20 Reputation points
accepted 2024-12-19T17:45:47.01+00:00
Stelios 20 Reputation points
1 answer One of the answers was accepted by the question author.

How to use EF Core with SQLite to update multiple records

The following code works to update the first matching record in a SQLite database, but the goal is to update all records that match TeeDate == myDateFormatted. I am trying to update multiple fields in a SQLite database with a single statement or a…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
767 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,007 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,636 questions
asked 2024-12-18T15:46:08.55+00:00
Phil Cleveland 20 Reputation points
commented 2024-12-18T23:15:19.0733333+00:00
Phil Cleveland 20 Reputation points
2 answers

Minimal APIs in Blazor with RequireAuthorization() using Individual Account

In my .NET8 Blazor project, I added the Individual Account to manage the users. Now, in order to save the data in the database, I added some minimal endpoints like public static void MapClientEndpoints (this IEndpointRouteBuilder routes) { var…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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,636 questions
asked 2024-12-17T23:58:25.46+00:00
Enrico Rossini 196 Reputation points
edited an answer 2024-12-18T19:01:26.7366667+00:00
Bruce (SqlWork.com) 68,486 Reputation points
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,704 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,636 questions
asked 2024-12-16T18:26:28.2633333+00:00
Kuler Master 306 Reputation points
accepted 2024-12-17T14:45:56.32+00:00
Kuler Master 306 Reputation points
1 answer

Solution: Custom SignalR Endpoints (Hubs) in a Blazor Server Application using Azure B2C When Deployed to Azure

Posting this in case I need it myself... Issue: Using custom SignalR endpoints (for example a /chat hub) with Authentication in a Blazor Server application that uses Azure B2C will not work when deployed. It will work fine on your local machine (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,636 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
151 questions
asked 2023-01-15T08:30:23.1666667+00:00
Michael Washington 916 Reputation points MVP
commented 2024-12-17T08:33:12.3766667+00:00
Hernando Zambrano 0 Reputation points
2 answers

Can a razor/Blazor navigation link to either?

I think I've run into another mistaken idea, but I want to double check to see if I am wrong. I had hoped that I could navigate to either a razor page (.cshtml) or a Blazor page (.razor) from the same _Layout.cshtml. Here's a code snippet illustrating…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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,636 questions
asked 2024-12-13T18:58:08.8833333+00:00
Falanga, Rod, DOH 260 Reputation points
commented 2024-12-17T05:47:34.6566667+00:00
Ping Ni-MSFT 4,805 Reputation points Microsoft Vendor
1 answer

Does using one registered app for two web apps only allow a user to login to one app at a time via EntraID?

I have two Blazor web app project: App1 & App2. Both of them are deployed to one Azure app service. App1 is deployed to root "/" and App2 is deployed to virtual application as "/app2". I'm trying to use one app registration, so…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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,636 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,093 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,644 questions
asked 2024-12-05T20:22:14.7866667+00:00
Juwon Park 0 Reputation points
commented 2024-12-16T20:59:24.3566667+00:00
Bruce (SqlWork.com) 68,486 Reputation points
2 answers

Will my simple approach to migrating a Razor page to a Blazor component, work?

I've got another Blazor question. I started an [ASP.NET] Razor application a couple months back, because as I understood it at the time, it was the best way of getting to use Windows Authentication. And I know that it is possible to host Blazor…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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,636 questions
asked 2024-12-09T17:16:03.36+00:00
Falanga, Rod, DOH 260 Reputation points
commented 2024-12-13T21:17:14.29+00:00
Falanga, Rod, DOH 260 Reputation points
3 answers

How to Pass Parameters in Blazor

Hi, how can I use something like CommandParameter in Xamarin, but in Blazor for example: <div x-index="3" y-index="2"/> Then access them programmaticaly in C#. Thanks in advance

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,636 questions
asked 2024-12-07T10:00:54.7866667+00:00
Yusuf-3141 50 Reputation points
answered 2024-12-11T11:29:19.3966667+00:00
Yusuf-3141 50 Reputation points
4 answers

Submit blazor component data to controller mvc

Hi There, I am trying to integrate blazor with MVC and use Razor Component in MVC. In that I need to send/post data from razor component form to controller in MVC on click of a button click. Similar to what we use to do in ASP.Net mvc. @using…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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,636 questions
asked 2024-12-06T16:00:14.5+00:00
Shubhajit Pal 0 Reputation points
answered 2024-12-11T09:33:27.26+00:00
Jalpa Panchal-MSFT 705 Reputation points Microsoft Vendor
0 answers

NetMaui Blazor + Syncronisation Error in async + Android Release Build

I have a netmaui blazor hybrid (net8.0) app targeting Android and iOS.The registration form on my app uses API calls to my Azure backend to validate user entered data. This all works perfectly in debug mode. However, the process is failing in release…

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,636 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,763 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,152 questions
asked 2024-12-10T14:55:32.4733333+00:00
Glenn Stretton 0 Reputation points
commented 2024-12-11T05:43:11.2633333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 46,206 Reputation points Microsoft Vendor