Multiple App.Razor components
Hello, Is it possible to have an additional App.razor file that I can use for e.g. Admin area only? Currently, if I create a new folder named Admin and create a new layout there, it inherits from the existing App.razor and linked css files. Basically, I…
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…
Why does my app serve an .mp3 file correctly from localhost, but return a 404 when deployed to Azure?
I've a static web app created using Blazor in Visual Studio 2022. A static audio (.mp3) resource (located at wwwroot/audio/abc.mp3) is recognised and plays when using IIS Express / https localhost, but is not found in the Azure-deployed version. No…
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…
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:…
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…
Integrating RDLC reports in Blazor Web apps
Hello, Is it possible to call RDLC reports in a Blazor web app or use report viewer to load RDLC reports? I'm not seeing the reporting options in the latest framework. Could someone please share examples and resources for integrating RDLC reports with…
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…
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…
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…