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 .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…
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> …
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…
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…
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…
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…
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…
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 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?
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…
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 =…
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 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…
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…
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
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…
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"> …
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:…
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…