How to Decouple Front-End from Back-End with Secure APIs for User Management in Blazor Web App (.NET 8)
Hello, I'm used to creating Blazor Web App projects in .NET 8 with "individual accounts" and interactive render mode set to Auto, with per-page interactivity. The advantage of this setup is that all the account management mechanics are…
Asking for suggestions on how to proceed with no FKs
I am at the beginning of re-writing an old ASP.NET WebForms application, into an ASP.NET Core app using Razor and Blazor. The difficult step I am facing now is the database. The original developers, all who left before I was hired, had originally used…
Help to filter in TreeView
Hi, I've a blazor hybrid maui application and I have put the treeview. I have created a service to search for files in the tree structure and a text input for the search. My problem is that when I select a file in the search zone the nodes are filtered…
MAUI -- Another user has already installed an unpackaged version of this app. The current user cannot replace this with a packaged version.
I'm running into an issue with a commercial Maui app I'm working on. Essentially, we have multiple developers working on this application over RDP, none of which have administrative privileges. What happens is that when one user builds and debugs, anyone…
How to place appsettings.json in RCL project to be consumed by Configuration of blazor wasm app
I have a strategy to share App.razor from RCL project with Blazor hosting apps like Blazor Webassembly standalone app as a front-end app and Blazor hybrid apps as native apps. I placed all assets into a RCL project(RCL) including appsettings.json file in…
How to detect user's inactiveness in Blazor server app
We are developing a Blazor Server App, with no single line of JS written so far. This may be a basic question. My question is how to detect the user's inactiveness on Blazor server app and prompt them to either continue or logout or simply log…
Using Blazor, AD B2C and API Manager
Hi, I am using Azure AD B2C to secure my Blazor app and API’s. I have APIM fronting a set of Azure Fuctions. I can authenticate the user ok, using the MsalAuthentication class (well, the builder.Services.AddMsalAuthentication method). As it…
Blazor Server with Entity Framework Core Code First
Hello, we are currently evaluating the usability of Entity Framework Core Code First in a Blazor Server application. We try to migrate from a Database First approach where we created a DbContext instance (by a IDbContextFactory) per database…
Why is the blazor css isolation not working?
I have an AppLogin.razor component and its css file is AppLogin.razor.css. They are working fine. I have a UserLogin.razor component and its css file is UserLogin.razor.css. The working mechanism is as follows When you login from the AppLogin.razor…
Blazor App Redirecting API response to login page
I am building a Blazor Server app on .NET. The app was started using the Visual Studio .NET8 Web template for Blazor server with individual authentication turned on. In the second step, I added an API controller to the app, with the [Authorize]…
System.NotSupportedException: The given path's format is not supported
I have a project that has been building and publishing successfully. However, after attempting to solve the iOS 18 white screen issue, a new error has started to appear, and I am unsure where to look to fix it. The following changes have been made since…
Data API Builder - Azure Static Web Apps
Trying to understand Data API Builder (DAB) and if its right for my use case. Based off a simple address book example, there is a table "Addresses" that would have columns: User (the user of the address book, likely an ID linked from a User…
Customize default Account Pages for Blazer Server with Interactivity
I am fairly new to blazor ecosystem and have a requirement to modify the default registration to include role for the user. This could be a simple radio but they want selectable cards. I understand default registration is statically rendered and I…
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 Widgets and Dashboard
Hi Team, I am currently working on a Blazor project where I need to create a financial dashboard with customized widgets based on user roles and access levels. Can you please share a sample project without using any third-party tools like Syncfusion,…
Passing data from a Razor page to an MVC controller using Blazor web app
I have a Blazor web app with one Razor file (Values.razor), an API controller (ValuesController), and a model (ValuesClass). In Values.razor, I have one button that calls the Get method in ValuesController. I'm trying to assign data to a static list in…
Concurrency Failure while updateng user
Hi. After adding new item in List<RefreshToken> in user entity and update it in UserManager.UpdateAsync() me getting error "Optimistic concurrency failure, object has been modified". How i can fix it? public class User : IdentityUser { …
How to create the controller with Blazor Hybrid Maui and SQLite?
Hi, I use blazor hybrid maui project . I've created the classlibrary to create ApplicationDbContext.cs and model to do the migration with Ef core that involved SQLite I don't know much about blazor hybrid maui & sqlite; now my question is that I…
Deploying .NET 8 Blazor Interactive server to an "app" in IIS
Am trying to install a blazor 8 server app on IIS. Everything works fine within VS2022, but once I deploy the files to IIS I get some errors. I've tried <base href="/BlazorApp4/" /> or <base href="/" /> and …
How to change the solution and the project name in blazor server
Hello, I'm trying to rename the blazor project in the solution, but when I rename project, it doesn't change the namespaces and in the other places in the pages of the project. Is there any other way I can do this safely without breaking the app?