How to fixTypeLoadException: Could not load type 'Microsoft.Graph.IAuthenticationProviderOption' from assembly 'Microsoft.Graph.Core, Version=3.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
I am using Microsoft Graph 5.69 <PackageReference Include="Microsoft.Graph" Version="5.69.0" /> Each time, I register the Microsoft Graph service in program.cs …
How to use a blazor server app with a web api for authentication?
I've search the web for a simple tutorial for this but I can't seem to find this exact scenario. I have the following projects: WebApi This is a standard .NET 8.0 web api with individual accounts authentication. I've created everything using the…
Web deployment task failed from visual studio using profile
i am getting this error while deploying blazor server app Severity Code Description Project File Line Suppression State Error Web deployment task failed. (Could not complete the request to remote agent URL…
Blazor Web Assembly with Azure AAD and Custom authentication Login
I want to implement two authentication mechanism in my Blazor web assembly application (Azure AD and Custom Authentication). i.e. User can either login via Azure AD or he can go for Custom Authentication. When I register both Custom…
Blazor right slide panel using Fluent UI Library
Hello, I have implemented a right-side sliding panel using the Fluent UI library. When I click on the cards the edit panel opens directly. However, I am encountering an issue where the data inside the edit panel does not load it opens empty. The data…
How to know if "view all files" is turned on in solutions explorer
I wasted an hour figuring out that: ON = TINY SKINNY BOX IS VISIBLE. OFF = NO SKINNY BOX VISIBLE Mine was OFF by default. Needless to say I think this is horrendous design. It should be obvious by now (by virture of prevalence) how goofy this…
When users sign in to my app I can't get their Google profile info
Please view here. The issue is carefully documented with all screen shots etc: https://stackoverflow.com/questions/79424370/how-do-i-get-google-users-profile-details-such-as-their-name-and-pic I ended up with a duplicate question because this Microsoft…
Set default culture
Hello guys, I am using Microsoft.Extensions.Localization (8.0.11) but for some reason the following code does not work as expected. As you see, I expect the German to be default language but it's always English. Am I missing something? var…
Blazor Open a page in a new Browser tab using navigation manager?
Could please advise me the way of open a page in new tab using Navigation manager and how to show pdf file in browser window?
Must a Blazor web app only use .razor components?
Very simple question here, so please be gentle with me. I started a new Blazor app in early November 2024. The last time I worked on it was early December 2024, when several other urgent demands came up and I had to put this app aside until now. I cannot…
Where to locate reference files for multiple platforms in .NET 9.0 MAUI Blazor Hybrid & Web?
In Visual Studio 2022, the new version .NET 9.0 project template ".NET MAUI Blazor Hybrid and Web App" will create the following projects in a new solution: ProjectName ProjectName.Shared ProjectName.Web Where would you put the resources?…
Blazor Server (.NET 8) redirect fails after login
We have a Blazor Server app (.NET 8) that is hosted on IIS. Users access it by logging into Citrix with their Active Directory credentials, then into the app (with those same credentials). We use ASP.NET Identity to manage login. Both the end-users and…
Adding Blazor Identity to existing Blazer project fails with a 'null path' exception
Hi! I have the following: .Net SDK 9 Visual Studio Community 2022 v 17.12.3 Windows v10.0.19044 Blazer Server App When I try to add the Blazor Identity "scaffolding" I get a "There was an error running the selected code generator:…
.NET 9 Maui Blazor Hybrid & Web: Javascript and Reference files
I have been learning .NET 8 Maui Blazor Hybrid for the past few months to build a multiplatform app for Windows, Android, and iPhone. It's pretty cool, but there was a learning curve. I would like to take advantage of version 9.0 so that I can extend my…
bind value
Hello .I just started Blazor. Why don't the above values change when I change the input? For example, no matter how much I change the tel in the input, it doesn't change in the label. I used both @bind-value and @bind. I still don't get an…
Multiple App.Razor components
Hello, Is it possible to have an additional App.razor file that I can use for e.g. Admin area only? Currently, if I create a new folder named Admin and create a new layout there, it inherits from the existing App.razor and linked css files. Basically, I…
Why does my app serve an .mp3 file correctly from localhost, but return a 404 when deployed to Azure?
I've a static web app created using Blazor in Visual Studio 2022. A static audio (.mp3) resource (located at wwwroot/audio/abc.mp3) is recognised and plays when using IIS Express / https localhost, but is not found in the Azure-deployed version. No…
I can't find the Blazor Web Assembly option, I only see two options the Blazor Web App and the standalone Web Assembly application but none of them give me the ASP .NET Core Hosted option, why?
I do have a question related to this topic because I want to start a project with the Blazor WebAssembly App template but it is no longer only those two that you mention. according to a video it should look like this: I would like to know if the way I…
Blazor isn't listed in Visual Studio Community 2022
Hello I'm trying to start a new Blazor WebAssembly App in Visual studio 2022 but it isn't listed there. I did run dotnet new --list in the command line and it shows both Blazor WebAssembly App and Blazor Server App listed so I'm not sure why it isn't…
Blazor server JSRuntime call error function undefined
.net 8 Hello! We have a common error, but cant reproduce it in the browser. This is our code: protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { try { //so it do not scroll…