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:…
New to Blazor - A valid antiforgery token was not provided with the request.
Hi all, Can any body please give me an advice so I can move forward to the main page, why I'm getting "A valid antiforgery token was not provided with the request. Add an antiforgery token, or disable antiforgery validation for this endpoint."…
Not Able to install some Nuget Packages
Hi I am getting following errors while installing EntityFrameworkCoreTools and EntityFramWorkDesign form Nuget Packages Manager. Please help me, I tried to install these on both .NET framewok 9.0 and 8.0 Thanks *Package Microsoft.CodeAnalysis.Common…
Blazor server side measure delays (nuget injection?)
I was wondering, to measure the delays between client and a server based razor app. How would one approach this, i think its be nice if our app could take actions (upon delays) , and give insights in how responsive it is. If our app could inform that…
Can i target only one platform in .NET MAUI Hybrid.?
Hi Can i target only one platform in .NET MAUI Blazor Hybrid.? I know that MAUI is for multiple platforms, but at the moment I am not focusing on android or others, only Windows, to publish in Microsoft Store. All i want is to take advantage of…
Blazor get absolute URL from within the class
Hello, I have a class inside the Services folder. It contains a LogError(Exception ex) method in which I need the absolute URL in order to get the requested page. However, I am unable to access the HttpContext.Request.Url or any other method/extension…
What will be the REST API URL for the SSRS to be embedded in the Blazor Server Application?
I am working on adding the SSRS based reports into the Blazor Sever Application. SSRS Configuration is working fine and I can access SSRS on browser as well. I searched for different methods to implement the SSRS reports (created using MS Report…
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…
I can't find the Blazor Web Assembly option, I only see two options the Blazor Web App and the standalone Web Assembly application but none of them give me the ASP .NET Core Hosted option, why?
I do have a question related to this topic because I want to start a project with the Blazor WebAssembly App template but it is no longer only those two that you mention. according to a video it should look like this: I would like to know if the way I…
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…
Why can't I create a Blazor Server App with .NET 8?
I'm trying to create a Blazor Server App using .NET 8. I've done this at home, but here at work Visual Studio 2022 only allows me to create a Blazor Server App using .NET 6. I've gotten into Visual Studio Installer, to check to make sure I have .NET 8 as…
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…
Add Or Change Identity Claims In .Net 8 Blazor Web App
Hi, In Create New Blazor Web App Project : Check => Individual Check => .Net 8 Check => Auto Interactivew and in ApplicationUser.cs I add a property for use full name { public sting Fullname { get; set; } } but in components i want show…
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…
Get Absolute URL in Blazor class
Hello, I have a class inside the Services folder. It contains a LogError(Exception ex) method in which I need the absolute URL in order to get the requested page. However, I am unable to access the HttpContext.Request.Url or any other method/extension…
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…