Blazor Role Authorization not working
I have a Blazor server application with Identity setup to utilize a SQL Server. Additionally I'm using IdentityManager2 to assist with ensuring the account/roles are setup and everything works properly everywhere except for AuthorizeView and Authorize. …
Blazor Startup - Pre-registered Services
Hi I'm new to Blazor ad C# 6.0 and trying to find my feet. I am learning about dependency injection currently. Whilst I appreciate why DI is needed I am struggling a bit with documentation. From the documentation it is clear that you first need to…
Blazor Startup Class
I'm looking at Blazor Server app and in particular exploring the auto-generated source code. I have found that renaming the methods in Startup class causes an exception and the app won't load. The Startup class is passed to the host only in the form of a…
string test difficulty asp.net
H members when i make a single test of string it work fine user = HttpContext.Current.User.Identity.Name Label7.Text = user If Not user = "STUPREMAT\M.houssem" Then Menu1.Items(2).Enabled = False End If and when i make…
C# Syntax =>
PLEASE can somebody rewrite the below code for me without using the => operator. I'm trying to understand what it is doing and struggling. Have spent a lot of time but still can't get it. Thanks in advance: public static IHostBuilder…
WebAssembly and System.IO.Ports package
Has anyone had any luck creating a c# Net Standard 2.1 RS232 serial coms library using the System.IO.Ports package for use with a WebAssembly project. It would seem there's an issue with the Nuget package containing the wrong version of System.IO.Ports…
Roles question for situation where a user can login as other users
I am building an application Blazor Serverside) where a user can join, get a membership (Customer) and then fill out information on various pages. The other pathway is that they hire someone to do this for them (Pro) and that someone may ask them to…
Blazor component flow
I'm building a Blazor (server) application. On a user (test) screen I have a button that reads information stored in Redis and displays on the screen. What I don't understand is that I have to click the button twice for the screen to update. Here…
Why does cancelling new user signup in Azure AD B2C redirects to sites home page, produces “AuthorizationFailed” error?
I have a Blazor Hosted WASM application, and am using Azure AD-B2C to secure it. If a user who is not logged in tries to access any site on the page, they are directed to our b2c login page, as they should be, and if they supply a good username and…
Blazor server side - set diferent buttons state based on a method
How can i set diferent buttons state an colors, based on a method thar runs before rendering?
Namespace error with nuget package
Hi, I have used nuget to add a package to visual studio community (Version 16.9.0 preview 2.0), in a C# Blazor web assembly project. The nuGet add seems to work fine, and the package shows up in the dependencies for the project in the solution explorer…
Deployment of a Blazor WASM app from DevOps piepline results in path site/wwwroot/wwwroot/
Im building and deploying a .Net 5 Blazor WASM app from Azure Devops with the following pipeline to an Azure Web App, but the deployment adds an additional wwwroot directory inside the wwwroot directory, because the zip files get's extracted to the…
ASP.net core Blazor Server _ Client Architectural
Im beginer With Blazor , we work on system with back office and front users system that we done with MVC 5 but we want to upgrad to blazor with .Net5 , can i used Blazor Server Side as system back office and WebAssembly as Client user app if so can i set…
If modify project name of blazor app, scope string in bundled css didn't matched in html tag.
why is this? how can i solve this?
configuration best practice
I'm creating a Blazor Server application and I have static configuration data like the path to another api server. I'll need to access that api variable from multiple places such as in .razor components and even in the middleware pipeline. Is there…
How to modify bundled static file name such as ProjectName.styles.css and blazor.server.js?
I wanna hide that i use The Blazor. so, I should modify name of bundled css and js files. How to do this?
Deploy Blazor server Application changes in IIS 7.5.
Hello sir, Is there any way to update application changes in IIS without down application pool/iis?
Difference between Experimental and Production Supported version
I want to know Difference between Experimental and Production Supported version in Blazor. I mean Mobile Blazor Bindings is now Experimental(Not Committed) thats means i can't used now Mobile Blazor Bindings for my Project?
How do i make bootstrap responsive in a blazor server side?
I'm trying to make a component based on a responsive bootstrap navbar. Is there a way?
Messages, events between components?
Hi everyone,. my layout page (MainLayout.razor) contains navigation in header additionally component for login (right side of header) and finally language selection (last entry in header). The index is output in MainLayout via @Anonymous . Now I…