1,673 questions with Developer technologies | .NET | Blazor tags

Sort by: Updated
1 answer

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
asked 2021-07-19T18:34:11.98+00:00
Alex Oh 1 Reputation point
answered 2021-07-19T19:55:31.77+00:00
Michael Taylor 60,161 Reputation points
1 answer One of the answers was accepted by the question author.

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
asked 2021-07-17T18:37:39.177+00:00
Matthew Holton 331 Reputation points
commented 2021-07-19T17:06:22.237+00:00
JamesTran-MSFT 36,906 Reputation points Microsoft Employee Moderator
0 answers

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
asked 2021-07-16T14:04:23.69+00:00
Georgiana 1 Reputation point
commented 2021-07-19T06:21:13.75+00:00
Anonymous
1 answer One of the answers was accepted by the question author.

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
asked 2021-07-14T08:18:22.73+00:00
NOVATROOP77 266 Reputation points
commented 2021-07-15T20:07:01.373+00:00
NOVATROOP77 266 Reputation points
1 answer

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
asked 2021-07-14T14:20:26.52+00:00
Stefano Milanesi 21 Reputation points
answered 2021-07-14T16:13:55.797+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
1 answer

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
asked 2021-07-13T16:42:51.02+00:00
Jorge Arana 1 Reputation point
commented 2021-07-14T02:51:53.337+00:00
Yiyi You - MSFT 521 Reputation points
0 answers

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
asked 2021-07-13T08:24:22.997+00:00
marcel. w 1 Reputation point
commented 2021-07-13T10:53:12.843+00:00
AgaveJoe 30,126 Reputation points
0 answers

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
asked 2021-07-10T17:48:05.097+00:00
Ingo Manthey 41 Reputation points
commented 2021-07-12T06:42:43.03+00:00
Yiyi You - MSFT 521 Reputation points
3 answers One of the answers was accepted by the question author.

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
asked 2021-07-07T16:57:45.84+00:00
Stefano Milanesi 21 Reputation points
commented 2021-07-10T07:09:13.553+00:00
Stefano Milanesi 21 Reputation points
1 answer One of the answers was accepted by the question author.

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
asked 2021-07-09T14:22:14.46+00:00
Matthew Holton 331 Reputation points
commented 2021-07-09T19:29:12.513+00:00
JamesTran-MSFT 36,906 Reputation points Microsoft Employee Moderator
0 answers

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
asked 2021-07-08T07:03:08.627+00:00
blastupt 1 Reputation point
commented 2021-07-09T02:55:30.817+00:00
Anonymous
2 answers

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
asked 2021-07-07T16:33:52.627+00:00
Prathamesh Shende 441 Reputation points
answered 2021-07-08T22:12:30.2+00:00
Bruce Barker 801 Reputation points
1 answer One of the answers was accepted by the question author.

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
asked 2021-06-27T21:29:04.117+00:00
DB-ExMSFT 31 Reputation points
commented 2021-07-07T17:32:23.377+00:00
DB-ExMSFT 31 Reputation points
7 answers One of the answers was accepted by the question author.

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
asked 2021-06-25T13:22:39.303+00:00
sblb 1,231 Reputation points
accepted 2021-07-06T08:15:37.967+00:00
sblb 1,231 Reputation points
3 answers

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
asked 2021-03-26T11:57:13.713+00:00
Марат Шакуров 1 Reputation point
answered 2021-07-05T13:23:19.097+00:00
Mayur Ekbote 1 Reputation point
0 answers

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
asked 2021-07-02T07:43:18.177+00:00
Clemens Linders 21 Reputation points
commented 2021-07-02T11:04:00.473+00:00
AgaveJoe 30,126 Reputation points
0 answers

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
asked 2021-07-02T08:24:59.38+00:00
lakes abim 1 Reputation point
0 answers

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
asked 2021-07-01T16:32:03.897+00:00
Lara 1 Reputation point
commented 2021-07-02T06:21:00.877+00:00
Rena Ni - MSFT 2,066 Reputation points
0 answers

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
asked 2021-06-23T04:25:40.517+00:00
ibocon 31 Reputation points
commented 2021-07-01T13:00:59.213+00:00
ibocon 31 Reputation points
0 answers

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. …

Developer technologies .NET Blazor
asked 2021-06-29T01:25:13.87+00:00
마루 라온 21 Reputation points
commented 2021-06-29T08:35:34.723+00:00
Chao Deng-MSFT 801 Reputation points