16,492 questions with .NET-related tags

Sort by: Updated
1 answer

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

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,048 questions
asked Mar 31, 2025, 4:59 PM
Dani_S 4,361 Reputation points
commented Apr 1, 2025, 8:14 PM
Bruce (SqlWork.com) 73,496 Reputation points
0 answers

.NET Cannot access network on Mac

Hello, I am encountering an issue where a new install of .NET on Mac is unable to access the network. My network is just fine, I can access everything successfully from a browser and Curl. This exhibits by not being able to do a dotnet restore (hangs and…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,201 questions
asked Apr 1, 2025, 7:21 PM
Matt FitzGerald-Chamberlain 0 Reputation points
2 answers

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…

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,670 questions
asked Mar 30, 2025, 10:59 PM
Andrew White 0 Reputation points
commented Apr 1, 2025, 6:49 PM
Andrew White 0 Reputation points
1 answer

Why does my app show in a mobile phone resolution when deployed on a tablet simulator

Hello, I'm developing an application in .NET MAUI. I managed to have a functional MainPage like the following image. Then, I tested if it could work on Android, and after adding some code to make it build, it worked on a Pixel 7 simulator for Android.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,048 questions
asked Apr 1, 2025, 11:02 AM
Raul DURAN RACERO 0 Reputation points
answered Apr 1, 2025, 3:32 PM
Bruce (SqlWork.com) 73,496 Reputation points
0 answers

Deployment as exe on windows 11 is not working

Hi, Please see: https://app.screencast.com/LrNZnzuMjSgLd I installed the app ,deployed as exe with using -- self contianed ,on windows 11 and it not openning. dotnet publish -f net9.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,048 questions
asked Apr 1, 2025, 6:56 AM
Dani_S 4,361 Reputation points
edited a comment Apr 1, 2025, 10:32 AM
Dani_S 4,361 Reputation points
1 answer

Maui app as exe - throw exception when installing on new machine

Hi, Maui app as exe - throw exception when installing on new machine. This the message I got: What do we miss ? I used following command to publish application to exe. dotnet publish -f net9.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,048 questions
asked Mar 24, 2025, 8:37 AM
Dani_S 4,361 Reputation points
commented Apr 1, 2025, 6:49 AM
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 81,186 Reputation points Microsoft External Staff
1 answer

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…

Entity Framework Core Training
Entity Framework Core Training
Entity Framework Core: A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.Training: Instruction to develop new skills.
9 questions
asked Mar 28, 2025, 5:18 AM
Jagan P 0 Reputation points
commented Apr 1, 2025, 6:22 AM
Pradeep M 6,975 Reputation points Microsoft External Staff
1 answer

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…

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,670 questions
asked Mar 31, 2025, 4:12 PM
Prathamesh Shende 401 Reputation points
commented Apr 1, 2025, 6:22 AM
Ruikai Feng - MSFT 2,756 Reputation points Microsoft External Staff
0 answers

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

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,048 questions
asked Mar 21, 2025, 4:11 PM
Sakshi Poojary 95 Reputation points
commented Apr 1, 2025, 3:04 AM
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 81,186 Reputation points Microsoft External Staff
2 answers

MAUI application WebView control is not scrolling in Android using touch.

Need help on my MAUI application that includes a WebView control which I load with an in memory html string. When app runs on Android, scrolling cannot be done with touch. Scrolling does work with arrow keys. The app does scroll by touch in iOS.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,048 questions
asked Mar 27, 2025, 11:24 PM
Jerry Bonetti 0 Reputation points
commented Apr 1, 2025, 1:30 AM
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,776 Reputation points Microsoft External Staff
1 answer

Streaming Issue with Blazor WebAssembly and Sematic Kernel and Open AI

I am using Blazor WebAssembly connecting to Azure Open AI. When I try to stream the response. I get the error message below. This is my code: public partial class HomeView { [Inject] Kernel Kernel { get; set; } private string message; private string…

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,670 questions
asked Mar 31, 2025, 9:47 PM
RiSchone 0 Reputation points
edited the question Apr 1, 2025, 1:15 AM
Zhi Lv - MSFT 33,186 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

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…

.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
126 questions
asked Mar 8, 2025, 2:12 PM
FEDERER ROGER 5 Reputation points
commented Apr 1, 2025, 1:04 AM
FEDERER ROGER 5 Reputation points
2 answers One of the answers was accepted by the question author.

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…

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,670 questions
asked Mar 26, 2025, 9:54 AM
Prathamesh Shende 401 Reputation points
commented Mar 31, 2025, 3:58 PM
Prathamesh Shende 401 Reputation points
2 answers One of the answers was accepted by the question author.

.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 Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
24 questions
asked Mar 24, 2025, 2:55 PM
HARSHA VARDHAN NAKKA 45 Reputation points
commented Mar 31, 2025, 1:40 PM
HARSHA VARDHAN NAKKA 45 Reputation points
1 answer One of the answers was accepted by the question author.

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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,048 questions
asked Apr 8, 2024, 6:00 PM
Isspro-eng 45 Reputation points
edited a comment Mar 31, 2025, 12:11 PM
Rakesh Ravi G 0 Reputation points
3 answers One of the answers was accepted by the question author.

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…

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,670 questions
asked Mar 25, 2025, 6:48 PM
Steve Rehling 125 Reputation points
accepted Mar 31, 2025, 12:09 PM
Steve Rehling 125 Reputation points
1 answer

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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,048 questions
asked Mar 27, 2025, 10:26 AM
Dani_S 4,361 Reputation points
commented Mar 31, 2025, 9:33 AM
Dani_S 4,361 Reputation points
0 answers

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
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,048 questions
asked Jun 1, 2023, 6:48 PM
Billy G 0 Reputation points
commented Mar 31, 2025, 9:28 AM
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 81,186 Reputation points Microsoft External Staff
1 answer

.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 MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,048 questions
asked Mar 25, 2025, 2:54 PM
Adrian Lewis 20 Reputation points
commented Mar 31, 2025, 7:16 AM
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,331 Reputation points Microsoft External Staff
1 answer

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

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,048 questions
asked Mar 27, 2025, 8:28 AM
Dani_S 4,361 Reputation points
edited a comment Mar 31, 2025, 6:59 AM
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 81,186 Reputation points Microsoft External Staff