How to use a blazor server app with a web api for authentication and persist authentication across circuits?
I originally posted a comment under this question as I am following a similar scenario: https://learn.microsoft.com/en-us/answers/questions/1454927/how-to-use-a-blazor-server-app-with-a-web-api-for I have a custom AuthenticationStateProvider which is…
Report on progress bar of download file
Hi, I have progress bar control, i got from API the content stream response. How i can report on progress of download process of file in the UI page? Thanks, try { using (var fileStream = File.Create(zipPathForFolderOrPathForFile)) …
win11 update
my system is win11, and i use the markdownpad2 app ,and recently ,win11 system updated ,and the markdownpad2 app can't open ,and the error is like below: Exception Information: System.Windows.Markup.XamlParseException: The invocation of the…
How to set up Custom Authentication State in Blazor Server .net 8 or 9
Hi, I set authentication settings in Blazor Server .NET 9. After setting it, I put the [Authorize] attribute on the API call in the controller. So it will fetch the authorization header of the access token, and the API will be authorized to show…


Create Identity Provider without Identity Server
Hi, I am learning something new and want to develop the identity provider similar to IdentityServer4. I am making quite some progress. The client project is Blazor OIDC, and Microsoft does it on Community Standup live. Auth Server is…


.NET Editor is not loading up in C# fundamentals course
.NET Editor is not loading up in C# fundamentals course. When i open c# certification from free codecamp one. xp and .net loader are not loading. please i need your help to fix it Link:…
.NET MAUI Camera Not Opening on Android 15 (Works on Other Versions)
In my .NET MAUI application, I have the option to open the camera using MediaPicker.CapturePhotoAsync(). The camera works fine on other Android versions, but on Android 15, it does not open. Below is the code I am using to open the camera: try { …
Looking to remove underline from Android Entry and Pickers in .NET Maui
I need to remove the underline in my .NET Maui application for entry and picker handlers. In addition to this, I need to set the background color to a custom color that I have. I have found ways to set the background color to transparent to remove the…
Blazor WASM JS Calls with an Object Argument Work in VS Debug But Not a Published Release
I have a Blazor WASM app that uses JSRuntime to Get/Put IndexedDB data (mockup below). Calls to "Put" functions that pass an object (not a native type) to be stored work fine in the VS Community 2022 debugger, but when I run a published…
Download big file failed but it gives a success message
Hi, I have this code in windows , net 9. I'm download a big file file (5 giga) from our website when using DownloadCommand and action is failed but I got success message. This is the problematic start code , how to fix it…
How to play an audio file in .NET MAUI
I want to play a sound on my mobile application (android and IOS) So I've Added the sound file under the “Resource/Raw” folder with BuildAction=MauiAsset and Added Nuget package "Plugin.Maui.Audio" and used below code to play the…
MAUI Maps Zoom Event
How can I listen for a MAUI Map Zoom Event? I would like to detect when the user has zoomed out of a MAUI Map and perform actions depending on the zoom event. Reason: On Android Google Maps api will only allow for plotting 10 PinPoints at once. When a…
.Net MAUI app fails to deploy only to remote iPhone
I have a .Net Maui app (9.0.14) built in vs2022 (updated to 17.13.4 today) on WIndows 11 Pro, which works fine on local dev machine, in ios simulator, android simulator and windows machine. I'm frustrated that I can't get the app icon to display if I…
Net 9- UnhandledException is working?
Hi, I'm using windows 10 net 9. Is UnhandledException working ? If it works , how can I test it? Please use the sample we used in:https://learn.microsoft.com/en-us/answers/questions/2202802/flyout-navigation-improvements AppDomain currentDomain =…
MAUI: How to increase the slider height
I have a slider like below: <Slider x:Name="audioSlider" Grid.Row="0" Minimum="0" VerticalOptions="Center" HorizontalOptions="Fill" ThumbColor="Transparent" …
Using layout_columnWeight & layout_rowWeight in RecyclerView
I have a Fragment with a root element of a 2×3 GridLayout, which contains several RecyclerView(s). The RecyclerView(s) at [1,0], [0,1] & [1,2] have either a dynamic (but not changing) width or height, and I want the RecyclerView at [1,1] to fill the…
"You need to have an Theme.AppCompact" for this activity
Calling my app as a share target, I use an activity which is child to the main activity. On OnCreate(Instance) call completion, I get the above exception. I see I should create a Theme inherited from that of the main app one but can you provide more…
How to make textview visible ?
Hello in my project i implement an algorithm and i wanted to display a textview before the algo is performed but when i run the app the textview becomes visible after the algo is performed Thanksm
Blazor WebAssembly Keeps Accumulating Network Data on Page Navigation
Hi everyone, I'm facing an issue with my Blazor WebAssembly (WASM) application in Chrome. When I navigate between pages, the network data keeps accumulating instead of resetting. I noticed this in the Network tab of DevTools—at the bottom, where it shows…
There was no top-level authentication property found in configuration. - Error during integration tests
We have an issue with XUnit integration test in dotnet 8 We are upgrading our projects one by one to DotNet 8. During this process we upgraded one of our projects and it is working fine. But its integration tests are failing with the following error…