1,479 questions with Blazor tags

Sort by: Updated
1 answer

How to authorize Blazor server app according to role by folder path?

In a Razor page app or a MVC app, I can authorize multiple page by AuthorizeAreaFolder method. In Blazor project, I don't find like this method. I wanna authorize multiple Blazor page according to role by folder path. How can i this?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,346 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-01-12T03:48:48.953+00:00
Zang-Ho Bae 26 Reputation points
commented 2021-06-18T03:33:05.907+00:00
Mathews, Jaish 21 Reputation points
0 answers

Create a graph Blazor component with export in PDF and PowerPoint

I'm developing an application in Blazor WebAssembly. I have to create a congress plan based on the input from the clients. I have a lot of them. I want to achieve a result like the following image Using HTML is quite simple: I can create a table and…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-06-15T22:03:00.917+00:00
Enrico Rossini 181 Reputation points
commented 2021-06-17T05:19:39.657+00:00
Yinqiu Yao-MSFT 236 Reputation points
0 answers

Blazor WASM on Windows 2016 Server Hosted with IIS, Authentication Token failed

Hello, I'm relatively new to Blazor Here is a whole Blog Post about it and my Server Settings and everything: https://stusse.de/setup-windows-server-2016-with-blazor-webassembly-app-authentication-failed-part-1/ Short Info: I Wanna create…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
719 questions
Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,346 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-06-11T16:57:05.36+00:00
DerDerErIst 1 Reputation point
commented 2021-06-17T03:02:22.38+00:00
Brando Zhang-MSFT 3,361 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

HttpClient Not fetching BaseAddress

I have create Blazore WASM App and with Identity Server 4 So IHttpClientFactory and add default httpClient scope but its showin Null HttpClient.BaseAddress after I fetching into services.cs file this is files Program.cs public class Program { …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-06-15T15:59:35.55+00:00
Prathamesh Shende 376 Reputation points
answered 2021-06-15T19:48:34.573+00:00
AgaveJoe 27,496 Reputation points
0 answers

Blazor WASM .net 5 Debug.WriteLine not working

Since .net 5 in my Blazor WASM solution Debug.WriteLine no longer works? why is this? Console.WriteLine does work but I would prefer to use Debug.WriteLine as it's conditionally omitted from the production compilation. Is it something I need to…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-06-14T12:35:47.377+00:00
Carl Blanchard 1 Reputation point
commented 2021-06-15T13:58:34.863+00:00
Carl Blanchard 1 Reputation point
4 answers

Why bootstrap crashes in my blazor app?

Hello, I have made my project with blazor-server. When I publish the project, Bootstrap does not work and everything crashes. And the site has no style! Do you think what is the reason? thanks, Saeed

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-06-12T04:19:33.667+00:00
Saeed Pooladzadeh 251 Reputation points
answered 2021-06-15T05:54:52.447+00:00
Yihui Sun-MSFT 801 Reputation points
3 answers One of the answers was accepted by the question author.

Data Model Setup Problem

I'm new to Blazor and I'm having a bit of a problem with my Data Access Layer Model. I created a database and I double checked all my keys and foreign keys to make sure they are correct. I imported the model (Reverser Engineer) using EF Core Power Tools…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,579 questions
asked 2021-06-10T18:25:11.103+00:00
smcniel24 21 Reputation points
commented 2021-06-10T21:24:55.653+00:00
Duane Arnold 3,216 Reputation points
1 answer

How to setup Configuration in Class file?

I would like to move these two "secrets" to secrets.json @inject IConfiguration config does not work. using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.Extensions.Configuration; ///…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-06-08T16:24:58.143+00:00
wavemaster 311 Reputation points
answered 2021-06-08T21:13:59.51+00:00
AgaveJoe 27,496 Reputation points
3 answers One of the answers was accepted by the question author.

HttpContextAccessor not found in Blazor Wasm app with authentication

This is a Blazor Wasm app from a VS2019 template with Authentication/Authorization. I need to know who the user is that is logged in. User = HttpContextAccessor.HttpContext.User.Identity.Name; HttpContextAccessor has a squiggle with cannot be found…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-06-02T21:26:01.107+00:00
wavemaster 311 Reputation points
accepted 2021-06-07T14:07:17.3+00:00
wavemaster 311 Reputation points
3 answers One of the answers was accepted by the question author.

How to secure Blazor Server against cross-origin attacks?

I would like to ensure that a Blazor Server app is secure against cross-origin attacks, in particular against the SignalR hub that Blazor Server is using. The app in question has no need to enable any cross-origin connections as far as I am…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,396 questions
asked 2021-06-01T10:56:44.03+00:00
Rob Nelder 96 Reputation points
commented 2021-06-07T12:55:01.097+00:00
Rob Nelder 96 Reputation points
0 answers

.NET Core 5 Blazor Server - Loop to login page when required users to authenticate - Too many redirects

I've been using Web Forms for many years. I'm trying to move to .Net Core Blazor/MVC. This was easy the old way... I have an application that I need to required all users to be logged in. In theory, non authenticated should be redirected to the /Login…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-06-07T08:10:35.757+00:00
António Godinho 1 Reputation point
commented 2021-06-07T10:44:03.36+00:00
AgaveJoe 27,496 Reputation points
1 answer One of the answers was accepted by the question author.

Blazor webassembly with Authentication in production

I'm deploying a blazor app hosted with authentication (just use the default template in visual studio) As such I'm changing my appsettins.production.jon to: "Key": { "Type": "File", "FilePath":…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,396 questions
asked 2020-12-05T10:18:21.407+00:00
Cristóvão Morgado 101 Reputation points
commented 2021-06-06T19:43:03.643+00:00
Iede Snoek 1 Reputation point
4 answers

iframe for authentication in Blazor WebAssembly?

I've just begun to experiment with Blazor/WebAssembly, and I notice that several iframes are generated (visible in the rendered html), within which there is a bunch of cookie hashing for use with Identity. Is this really how you guys are…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-05-12T02:40:58.587+00:00
Paul Marangoni 126 Reputation points
answered 2021-06-06T11:49:11.853+00:00
AgaveJoe 27,496 Reputation points
0 answers

Stripe / Twilio listeners in a Blazor Server or Wasm app - reuse existing code

I am modernizing an app that was built using WebMatrix (Web Pages) which was the Microsoft flavor of the day about 10 years ago. This app has integrations with Stripe and Twilio by means of webhooks and I am receiving POST requests The listeners…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-06-04T13:10:54.627+00:00
wavemaster 311 Reputation points
commented 2021-06-04T16:07:06.997+00:00
AgaveJoe 27,496 Reputation points
1 answer One of the answers was accepted by the question author.

Connexion to LocalDB

Hi, I try to an application blazor WASM and I try to create DB. I've created in BlazorApp1.Shared.Models the class : using System; using System.Collections.Generic; using System.Text; namespace BlazorApp1.Shared.Models { class Developer { …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-06-03T10:06:29.013+00:00
sblb 1,171 Reputation points
accepted 2021-06-04T07:58:17.707+00:00
sblb 1,171 Reputation points
2 answers

Blazor wasm hosted - cannot access api method on hosted domain?

Hi When I create a blazor wasm hosted web application I can publish the project successfully. then in the Server\bin\Release\net5.0\publish folder I can run the project server .exe and using https://localhost:5001 I can test the web application…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-05-10T18:13:34.67+00:00
Ian Coetzer 66 Reputation points
answered 2021-05-30T13:06:05.09+00:00
Ian Coetzer 66 Reputation points
0 answers

Why blazor use signalr ?Compare to grpc when should to use signalr or grpc?

I do not think the web need use real-time communication,but blazor do use signalr why? If there is a scene that many users will get the same order which to use is better? let me say. If there is a order list that is user1 or user2 send …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,346 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-05-28T07:18:32.143+00:00
mc 4,026 Reputation points
commented 2021-05-29T13:14:00.613+00:00
AgaveJoe 27,496 Reputation points
0 answers

ClickOnce for Blazor (.NET 5) application

Hi there. I have a .NET 5 Blazor application running as Windows service Microsoft.AspNetCore.WebHost.CreateDefaultBuilder(args) .UseContentRoot(pathToContentRoot) .UseStartup<Startup>() …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-05-26T19:29:37.56+00:00
Nikolay Renziglov 21 Reputation points
commented 2021-05-27T02:25:50.003+00:00
Jerry Cai-MSFT 986 Reputation points
1 answer

How do I reuse Silverlight code in Blazor?

Hello, How do I reuse my Silverlight code in a Blazor app? williamj

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-05-25T15:25:42.857+00:00
William Johnston 61 Reputation points
answered 2021-05-26T21:21:17.657+00:00
Michael Washington 911 Reputation points MVP
0 answers

How to publish Blazor with .exe for server and client?

I want to publish the example app (template app) from Blazor with the server, client, and shared projects. Is there a way to publish the app with executable files for the server and client? So the user can run the server with one click and run the…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
asked 2021-05-18T04:56:37.83+00:00
Alvin Stefanus 26 Reputation points
commented 2021-05-25T10:19:33.537+00:00
Zhi Lv - MSFT 32,076 Reputation points Microsoft Vendor