Microsoft Q&A

Blazor

783 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

783 questions with Blazor tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Generate a simple message from controller (blazor page not for razor view)

In a Blazor server application, I have implemented user authentication via cookie. In the Blazor page (not razor view) I have created a form with email and password entries as well as a button for sending the data. The method is Post and is run on the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
783 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.
6,923 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
asked 2023-01-29T12:11:47.5833333+00:00
perfect code 121 Reputation points
accepted 2023-01-29T15:19:10.56+00:00
perfect code 121 Reputation points
2 answers One of the answers was accepted by the question author.

Logout (delete Auth-Cookie) only possible via form!

I have a Blazor server application (see my post here: https://learn.microsoft.com/en-us/answers/questions/1164837/aspnet-authentication-works-but-value-for-user-ide). Now I have implemented a cookie authentication. This works very well via a login and…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
883 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
783 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.
6,923 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
asked 2023-01-28T13:26:22.5033333+00:00
perfect code 121 Reputation points
commented 2023-01-28T17:41:48.8333333+00:00
perfect code 121 Reputation points
2 answers One of the answers was accepted by the question author.

Downgrade ASP.NET Core app from .NET 6.0 to .NET Core 3.1

I have made an ASP.NET Core web application, using .NET 6.0. However, when I obtained a hosting server, I learnt that my hosting provider has installed .NET 5.0. As a result, I now have to downgrade my project from .NET 6.0 to a previous version.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
783 questions
asked 2022-09-17T11:44:11.667+00:00
PPCMD 61 Reputation points
accepted 2023-01-28T12:04:03.31+00:00
PPCMD 61 Reputation points
1 answer One of the answers was accepted by the question author.

How to ignore ETag checking and fix this error

I read from and write to blob content in Azure blob storage. File is being changed (new content is getting appended to the file) at the same time while it is being downloaded. I get error in the below stream.Read() line. Which I believe is because of…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
783 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.
6,923 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,389 questions
asked 2023-01-18T12:50:17.69+00:00
Sarah 151 Reputation points
accepted 2023-01-28T07:59:17.6133333+00:00
Sarah 151 Reputation points
1 answer

Blazor webassembly shows 405 error in localhost (and also when deployed to iis) when redirect back from payment website

I have created a blazor webaseembly project using .net 7. The blazor app redirects to an external url for payment. Once payment is done the payment status page(which is in the blazor app) should be loaded as that's the return url set while calling 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.
783 questions
asked 2023-01-27T11:08:51.96+00:00
Jayant Guru 0 Reputation points
answered 2023-01-27T20:51:02.57+00:00
Bruce (SqlWork.com) 27,941 Reputation points
1 answer One of the answers was accepted by the question author.

ASPNET authentication works but value for user.Identity.Name is null

I get a null value for user.Identity.Name, but user.Identity.IsAuthenticated returns the correct value. I get my claim values too. I have only found a few posts about user.Identity.Name is null, but nothing has solved it. I have a simple login form: …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
783 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.
6,923 questions
asked 2023-01-27T14:29:56.4566667+00:00
perfect code 121 Reputation points
commented 2023-01-27T15:41:38.02+00:00
perfect code 121 Reputation points
5 answers

Blazor Error list stays empty

Hi there, The Error list stays empty while using blazor. The errors existing in Blazor components cause build errors but the errors aren't shown in the error list. With kind regards

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
783 questions
asked 2022-09-10T06:00:15.757+00:00
Ingmar Crone 31 Reputation points
answered 2023-01-27T09:10:21.6466667+00:00
Eric Bos 0 Reputation points
2 answers

In C# Blazor Server How Can I Send a 404 From A Static Method?

After much work, I finally found a way to get the IP Address of the client in Blazor Server. To do this, I had to use a site called ipify: <script> function GetAddress() { var script = document.createElement("script"); script.type…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
783 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.
6,923 questions
asked 2023-01-26T15:17:28.5433333+00:00
Data Juggler 146 Reputation points
answered 2023-01-27T03:58:25.25+00:00
Zhi Lv - MSFT 18,541 Reputation points Microsoft Employee
1 answer 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.
783 questions
asked 2023-01-18T12:23:31.0866667+00:00
Laurent Guigon 81 Reputation points
commented 2023-01-25T10:08:06.0366667+00:00
Laurent Guigon 81 Reputation points
1 answer

Blazor Server - System.InvalidCastException: Unable to cast object of type 'System.Double' to type 'System.Single'.

Hi, In my Blazor server application, I am trying to get the records from RazerReconciliation table as follows. I couldn't figure out why I am getting this error. public async Task<List<RazerReconciliations>> GetOldReconsAsync() { var…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
783 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.
6,923 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
420 questions
asked 2023-01-25T06:21:35.1233333+00:00
Cenk 666 Reputation points
edited an answer 2023-01-25T06:42:04.0533333+00:00
Viorel 82,381 Reputation points
0 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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
783 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
6,923 questions
asked 2023-01-19T00:23:45.6266667+00:00
The Acme Cheese Company 0 Reputation points
edited a comment 2023-01-24T18:43:20.06+00:00
The Acme Cheese Company 0 Reputation points
1 answer

Access native functionalities in .Net MAUI Blazor app with embedded Angular application

Hi, We are working on creating a mobile application using .Net MAUI Blazor as technology. We were trying different approach Load dist folder of Angular application build into Blazor application Load direct angular application through weburl We were…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
883 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.
783 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
601 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
556 questions
asked 2023-01-24T09:12:41.6566667+00:00
Varpe, Nitin 0 Reputation points
answered 2023-01-24T18:06:09.0266667+00:00
Bruce (SqlWork.com) 27,941 Reputation points
2 answers

Blazor Wasm PWA not updating

After publishing blazor wasm app it will not updating it shows old version every time we performed hard reload and clearing cache and cookies then it will update. Please provide me solution to fix this issue

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
783 questions
asked 2023-01-23T17:19:09.8266667+00:00
Faheem Husain Rizvi 1 Reputation point
answered 2023-01-23T18:20:13.3833333+00:00
Bruce (SqlWork.com) 27,941 Reputation points
2 answers

How to catch the data from local storage fastly?

I have a data in localStorage I catch them by OnInitializedAsync method in mainLayout component and pass them to many component but it spends a lot of time how to inhance it ? this is my code Notes: the number of Items in list which I catch from local…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
783 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.
6,923 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
601 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-18T10:12:13.4333333+00:00
Haneen Al-fakhry 0 Reputation points
edited a comment 2023-01-23T18:17:52.7833333+00:00
Bruce (SqlWork.com) 27,941 Reputation points
1 answer

How to edit Resources file (.resx ) after publishing in Blazor Server Project ?

Hi, I have a Blazor Server Project in which I want to add a feature to Edit resource files after publishing. Exactly after publishing, there would be a publish folder in the bin directory of the project. I need to edit the string in the resources file…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
783 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
601 questions
asked 2023-01-23T07:29:57.2066667+00:00
AGRAHARI Shyam 0 Reputation points
answered 2023-01-23T17:13:53.7133333+00:00
Bruce (SqlWork.com) 27,941 Reputation points
3 answers

How to browse a folder in blazor server c#

The blazor server app has a folder that contains pdf files, the folder has web config file, see the below <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <directoryBrowse…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
783 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.
6,923 questions
asked 2023-01-22T16:34:13.5833333+00:00
Lou, Kecheng 0 Reputation points
answered 2023-01-23T15:13:34.1633333+00:00
Lou, Kecheng 0 Reputation points
1 answer One of the answers was accepted by the question author.

Blazor Server side app Failed to connect via WebSockets

I have a Blazor web app that used to run fine in Azure. The latest deployment does not work. It works fine locally on my development machine. Looking at the developer tools in Chrome I see this message: [2023-01-18T19:02:18.263Z] Warning: Failed 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.
783 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,306 questions
asked 2023-01-18T19:40:21+00:00
John Woakes 20 Reputation points
commented 2023-01-23T03:55:54.5566667+00:00
John Woakes 20 Reputation points
1 answer

Get client side culture

Hi Team, I have a blazor server app and I'm using the following code to get the culture used on user's machine. selectedcultureInfo =…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
783 questions
asked 2023-01-20T04:29:05.87+00:00
SandeepG 41 Reputation points
answered 2023-01-20T04:32:43.1833333+00:00
Avinash Mamidi 95 Reputation points
3 answers

MUAI Blazor App: A Blank "Screen" between splash page and login page.

Hi - We are using MAUI+ Blazor to develop our mobile App. One thing we notice is that as the app is starting, the splash screen shows, then it hides, then a very fast white flash shows right before the login page (or index page), because we are…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
783 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
883 questions
asked 2023-01-06T18:14:57.55+00:00
Bianyu Wang 1 Reputation point
answered 2023-01-19T14:33:05.7+00:00
刘 安 1 Reputation point
0 answers

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.
783 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
72 questions
asked 2023-01-15T08:30:23.1666667+00:00
Michael Washington 791 Reputation points Microsoft MVP
edited the question 2023-01-19T12:52:28.0866667+00:00
Michael Washington 791 Reputation points Microsoft MVP