1,673 questions with Developer technologies | .NET | Blazor tags
System.Text.Json How to create customer converter that can use another converter?
I have a class which has a member that also needs a custom converter. public class ClassA { public int TypeDiscriminator { get; set; } // this member needs a custom converter public SourceCache<Property, string> Properties { get; set;…
Developer technologies .NET Blazor
HOWTO: Azure Identity Custom Claims or Blazor User Security
I have a Blazor wasm project where my users are authenticated through Azure Identity. I need to further restrict functionality and data access based on user/group permissions. Is it possible to put these restrictions in the token from Azure as claims,…
Developer technologies .NET Blazor
Microsoft Security Microsoft Entra Microsoft Entra ID

Search in database from editform
Does anyone know how could I check if the email and password from EditForm exists in database? I'm using Blazor Server and SQL Server as database and I already have the models from database and the context. I know I should do a service class for user and…
Developer technologies .NET Blazor
Which project type for Blazor and Why 100 days of Blazor
I am doing 100 days of code and already hit a learning curve in MVC we would have had a project that just lived on the server now in the blazor land we have. WebAssembly Server Side Hosted asp.net core Blazor Can someone explain to me the…
Developer technologies .NET Blazor
Problem object service parameter
Hi, in the startup.cs module of a Blazor server project I declared this endpoint: endpoints.MapPost("/timestamp/addtimestamp/", (context) => { var timestamp =…
Developer technologies .NET Blazor
I get error in blazor wasm when i try to add identity item with scaffold.
When adding Identity to a project I get this error. error when executing the selected code generator error when restoring the package
Developer technologies .NET Blazor
ASPNETCORE_ENVIRONMENT
Hello, a Blazor Server Project which runs on a Azure WebApp with KeyVault Secret. But there is an ASPNETCORE_ENVIRONMENT ERROR which says set the ASPNETCORE_ENVIRONMENT to Development, but it is already set to Development! The error is just on the public…
Developer technologies .NET Blazor
ApiAuthorizationDbContext wie kann ich für die IdentityRole und IdentityUser jeweils eine andere Tabelle nutzen?
Hallo NG, In meinem vorherigen Project Angular habe ich den ApplicationDBContext wie folgt erstellt: public class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, string> Ich möchte nun in meinem neuen Programm…
Developer technologies .NET Blazor
Blazor server: return more objects from endpoint
Hi, I'm developing a Blazor Server application and I "declared" this EndPoint in the "Configure" of the Startup.cs file: endpoints.MapGet("/products/GetProduct/{ProductType}/{ProductSerialNumber}", (context)…
Developer technologies .NET Blazor
HOWTO: Secure Both API and Client Blazor With Azure AD
I am looking for a guide that provides the formula for securing both the wasm and api via Azure AD. I see mentions of Azure AD B2C, is this a requirement or just a bolt on layer? I have been able to secure the wasm portion of the solution, but all…
Developer technologies .NET Blazor
Microsoft Security Microsoft Entra Microsoft Entra ID

RZ10012 error when uses 'InputSelect' at blazor with VSCODE
@page "/Add_book" @using Microsoft.Extensions.Logging @using Microsoft.AspNetCore.Components.Forms <ul> <li> <label for = "input_booth"> C </label> <input id =…
Developer technologies .NET Blazor
Cannot Call .NET Method From Js Blazor WASM
I m getting an error The assembly 'ProjectClient' does not contain a public invokable method with [JSInvokableAttribute("UpdateDealsStageAsync")]. in blazor wasm project I have created the JSinvokable function This is file DealService.cs …
Developer technologies .NET Blazor

When are we going to have real Fluent UI support from Microsoft for Balzor web client app dev?
It's been almost 3 years since Blazor Web assembly client apps are in place. With the release of .Net5 during Nov 2020, Blazor became integral part of official Microsoft suite. It's one of the coolest rapid app dev (RAD) platform to build enterprise web…
Developer technologies .NET Blazor
Blazor wasm in VS CODE
Hi, I've tried to use blazor wasm in vs code and I have some difficulties to install things correctly. I don't undserstant why <Nav / > is underlined It's the things in another razor page all htlm is underlined. Other point : …
Developer technologies .NET Blazor
Blazor server. Scoped Service created twice outside the @Body
If Razor Component1 injecting Scoped Service1 is inserted outside the @Anonymous of the LayoutComponent, then Service1 is created 2 times. Even if you insert 100 such components outside the @Anonymous , two services will be created nevertheless. If…
Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Blazor
Identifying clients on a Server-side blazor app
Hi, I would like to know if there is way of identifying clients on a Server-side blazor app. The problem: We are using aprox 50 handhelds based on Windows CE and we are trying to convert the app to Blazor which will be used on Android handhelds. …
Developer technologies .NET Blazor

Blazor App azure use to work, but now Not working with error pasted below could someone help please as it a future buisness app!!?
Is this a version issue with whats on azure App even though the project is upload as SELF CONTAINED. NOTE this error also happens with a New blank Blazor server app, every thing use to work fine but now getting this when uploaded to azure app!!! …
Developer technologies .NET Blazor
Using ExpandEndpoint requires that the replaced endpoint have a unique priority. The following endpoints were found with the same priority: /_Host /_Host
Since the system went online, there were some errors causing it not to work appropriately. I searched for the information online and could not find any solution. Has anyone encountered this type of situation? I have attached the error message …
Developer technologies .NET Blazor
Blazor TypeClient `AddHttpMessageHandler` emits `InvalidOperationException` (ValueFactory attempted to access the Value property of this instance.)
I try to apply ASP.NET Core Blazor WebAssembly additional security scenarios Typed HttpClient with OIDC authentication like below, cs // Blazor WebAssembly 'Program.cs' public static async Task Main(string[] args) { var…
Developer technologies .NET Blazor
Developer technologies .NET .NET Runtime
Creating page with formated data
I recently tried to make a no code or less code platform for large system which have lots of page. So i thought the data of page could be managed by some xml, xaml or just formatted string and the client just build a page by the data. Like this. …