Microsoft Q&A

Blazor

964 questions

A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.

Browse all .NET tags

964 questions with Blazor tags

Sort by: Updated
1 answer

app center support for blazor apps

Will app center ever support blazor server/wasm apps?

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
964 questions
asked 2023-05-27T10:58:03.7933333+00:00
JohnHunter-7034 0 Reputation points
answered 2023-05-28T18:28:47.61+00:00
Bruce (SqlWork.com) 35,416 Reputation points
3 answers

Can I do a swap on a Blazor Server App service without disconnecting users?

I run an App Service hosting a Blazor Server Application. The App service has a staging and production slot. When I do a swap from staging to production I would like users to remain connected and have 0 downtime. Is this possible? The application also…

Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
91 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
4,900 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.
964 questions
asked 2023-05-21T03:57:28.9233333+00:00
Sean Wauchope 30 Reputation points
commented 2023-05-25T16:59:09.1333333+00:00
Bruce (SqlWork.com) 35,416 Reputation points
1 answer

Blazor Server B2C Project with additional EmailSender

Hello, in a Blazor Server B2C (LogIn) Project i'd like to add a additional email sender. Not for Login but for email info e.g. after a user saved a new input form. I tried it with SendGrid which works fine in a non B2C Project but not in the B2C…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
964 questions
asked 2022-09-07T09:40:30.377+00:00
admin@padis.ch 1 Reputation point
answered 2023-05-25T10:54:45.8933333+00:00
Marco S. Junior 1 Reputation point
0 answers

Constantly getting "System.InvalidOperationException: No service for type 'Microsoft.AspNetCore.Components.WebAssembly.Authentication.BaseAddressAuthorizationMessageHandler' has been registered." exception in .NET 6 Blazor WASM hosted app.

I've created a hosted Blazor WASM app that uses Azure AD for authentication and authorization. I am able to login to Azure AD successfully. After I login, I try to navigate to a page that has an API call, and get the error described in the stack trace…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,623 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,122 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.
964 questions
asked 2023-05-24T14:14:10.83+00:00
Greg Rairdon 0 Reputation points
edited the question 2023-05-25T05:32:59.99+00:00
Qing Guo - MSFT 391 Reputation points Microsoft Vendor
1 answer

Blazor webassembly get file access

How can I access local file system with blazor webassembly? Sorry that was a try using AI. But it was not functional :-(

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
964 questions
asked 2023-05-24T06:08:42.3733333+00:00
Christian Steinmetz 0 Reputation points
answered 2023-05-24T15:45:01.1033333+00:00
Bruce (SqlWork.com) 35,416 Reputation points
0 answers

How to handle exceptions in .net maui blazor app

How can I handle exceptions and store them in a file

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
964 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,386 questions
asked 2023-05-22T08:35:23.1433333+00:00
Shankar 0 Reputation points
commented 2023-05-23T04:56:22.0566667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 19,966 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Why Call Ajax request not return branches drop down List based on company drop down list selected value?

I working on MVC razor page with .NET core 7 .I face issue Ajax request not return branches drop down list based on selected value from drop down list company . with another meaning I need cascade branch drop down list based on company drop down list by…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,122 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.
964 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
844 questions
asked 2023-05-06T13:50:50.3733333+00:00
Ahmed Salah Abed Elaziz 210 Reputation points
edited an answer 2023-05-19T21:02:08.2833333+00:00
Amy2424 0 Reputation points
1 answer

How to host Blazor Custom Element as Webresource in Dataverse

How do I go about hosting Blazor Custom Element as webresource in Dataverse.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
964 questions
asked 2023-05-18T02:04:28.4366667+00:00
Blazor Dataverse 0 Reputation points
commented 2023-05-18T18:47:06.9333333+00:00
Bruce (SqlWork.com) 35,416 Reputation points
1 answer

Azure AD and Blazor WASM with SSO

Hi, I have a .NET6 Web API with a hosted Blazor WASM client. This pair use azure AD for authentication and authorization. I'm trying to get the user to be authenticated and authorized with SSO, more precisely he need not to enter his usernames and…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,623 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.
964 questions
asked 2023-05-03T06:56:59.88+00:00
71185955 20 Reputation points
edited a comment 2023-05-18T17:28:37.54+00:00
Bruce (SqlWork.com) 35,416 Reputation points
0 answers

KeyboardEventArgs always return empty or "Undefined" on Mobile (Android). How to solve it?

When trying to handle KeyboardEventArgs, it returns key and code with the relative key when using windows, but hen using any android device, it returns always Code = "" and Key = "Undefined" Noticed that when trying to use mask with…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,386 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.
964 questions
asked 2023-05-18T01:53:45.0633333+00:00
Elyel Rubens da Rosa 0 Reputation points
2 answers

How to allow multiselection on blazor server app ?

I work on blazor server app . i need any control select2 or another allow to me to make multi selection as example suppose i have server drop down and this server can have multi database so server 1 will have multi selection on database list as…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
844 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,122 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.
964 questions
asked 2023-05-10T08:10:24.9666667+00:00
Ahmed Salah Abed Elaziz 210 Reputation points
commented 2023-05-16T06:04:36.1533333+00:00
Zhi Lv - MSFT 24,081 Reputation points Microsoft Vendor
1 answer

How to improve user experience and refresh Static Web Apps session when it expires in a SPA?

I have a Blazor WASM app hosted by Azure Static Web Apps, with Managed Functions. I have a SWA Standard plan and am using custom authentication (Auth0). My authentication system works well, and I also have roles-based authorization which works great. The…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,991 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
426 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.
964 questions
asked 2023-05-08T18:58:20.8966667+00:00
mkb13 11 Reputation points
commented 2023-05-14T03:20:15.0833333+00:00
Bruce (SqlWork.com) 35,416 Reputation points
2 answers One of the answers was accepted by the question author.

Is it thread safe to use DbContext in Blazor server referencing it as injected?

I have a Blazor server app using Entity Framework Core. Like pretty much every example ever for this, I do the following: [Inject] private TrackingDbContext TrackingDbContext { get; set; } = default!; And then when I need to do something on the database…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
964 questions
asked 2023-05-10T09:05:46.9633333+00:00
David Thielen 966 Reputation points
accepted 2023-05-13T09:10:22.0166667+00:00
David Thielen 966 Reputation points
2 answers One of the answers was accepted by the question author.

Why can I use UserManager & SignInManager in a Blazor server app

I am successfully using UserManager & SignInManager in a Blazor server page: [Inject] private SignInManager<IdentityUser> SignInManager { get; set; } = default!; [Inject] private UserManager<IdentityUser> UserManager { get; set; } =…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
964 questions
asked 2023-05-12T08:00:48.5966667+00:00
David Thielen 966 Reputation points
commented 2023-05-13T09:09:56.36+00:00
David Thielen 966 Reputation points
2 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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
964 questions
asked 2023-05-07T16:24:50.2+00:00
David Thielen 966 Reputation points
commented 2023-05-12T22:57:38.1033333+00:00
Bruce (SqlWork.com) 35,416 Reputation points
4 answers One of the answers was accepted by the question author.

How can I get a scroll bar only on <main>?

This is for Blazor but I've reduced it to very simple HTML (this is basically my MainLayout.razor file). I want to locate <header> and <nav> at the top of the page and <footer> at the bottom. And all three are always visible, they do…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
964 questions
asked 2023-05-04T08:59:34.54+00:00
David Thielen 966 Reputation points
commented 2023-05-11T13:12:29.3433333+00:00
David Thielen 966 Reputation points
2 answers

Are Claims the best way to handle programmatic logic determining what is displayed?

I am writing an application to manage volunteers for political campaigns. This is a lot more complicated than any past multi-tenant app I've written and so am asking for guidance here to if claims are the best way to handle this. And if so, any guidance…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
964 questions
asked 2023-05-07T08:15:30.41+00:00
David Thielen 966 Reputation points
commented 2023-05-11T04:03:41.01+00:00
David Thielen 966 Reputation points
1 answer One of the answers was accepted by the question author.

Configuring Sticky Sessions vs Forwarded Headers - Blazor Server

I'm running a Blazor Server app behind a load balancer. I am aware that sticky sessions can be used with ASP.NET Core when SignalR is running behind a load balancer. I have also read documentation that talks about using forwarded headers. My…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,122 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.
964 questions
asked 2021-04-12T18:25:55.263+00:00
Ryan Buening 26 Reputation points
commented 2023-05-10T21:43:42.55+00:00
Sashi Sridhar 0 Reputation points
2 answers One of the answers was accepted by the question author.

Getting the identity of the logged in user

The is for a Blazor (server side) application. As I understand it, I have three objects for a logged in user: AuthenticationState which I can get in my razor page as it's injected. This allows me to make calls to see if claims allow users to take…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
964 questions
asked 2023-05-07T08:35:19.58+00:00
David Thielen 966 Reputation points
accepted 2023-05-10T09:48:45.84+00:00
David Thielen 966 Reputation points
0 answers

Picture Decryption Algorithm for Blazor-Webassembly

I wanted to Decrypt a picture file using Blazor-webassembly. Which is the supported Decryption algorithm?

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
964 questions
asked 2023-05-07T03:41:03.4433333+00:00
Kevin Azure 141 Reputation points
commented 2023-05-10T09:40:11.0633333+00:00
Qing Guo - MSFT 391 Reputation points Microsoft Vendor