16,499 questions with .NET-related tags

Sort by: Updated
0 answers

How do I get FilePicker to return a non-null result on MacCatalyst?

Maui Workload 9.0.14/9.0.100 SDK 9.0.200 Using Visual Studio Code on my Mac. I am developing a MAUI App that needs to run on Windows, MacOS and iOS (iPad only). I am trying to get FilePicker.Default.PickAsync() to return a non-null result on a Mac. It…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,054 questions
asked Apr 2, 2025, 5:27 PM
Alex Phillips 0 Reputation points
commented Apr 2, 2025, 5:28 PM
Alex Phillips 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 2, 2025, 5:24 PM
Bruce (SqlWork.com) 73,496 Reputation points
0 answers

App.Current.GoToAsyn("page") in NET 9 will work ?

Hi, I have MAUI app in .NET 8 . In this MAUI app I used for navigation only : await App.Current.GoToAsyn("new_page") while moving from page to page. Does this will work in .NET 9? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,054 questions
asked Apr 2, 2025, 3:16 PM
Dani_S 4,361 Reputation points
commented Apr 2, 2025, 3:42 PM
Dani_S 4,361 Reputation points
0 answers

Does using --self-contained will install all the need runtime files for running the app in server 2019/2022Does using --self-contained will install all the need runtime files for running the app in server 2019/2022

Hi, I have Maui app in .NET 9. Does using --self-contained will install all the need runtime files for running the app in server 2019/2022. I installed the app ,deployed as exe with using -- self contianed. dotnet publish -f net9.0-windows10.0.19041.0 -c…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,054 questions
asked Apr 2, 2025, 3:05 PM
Dani_S 4,361 Reputation points
0 answers

Deployment WPF as self contained

Hi, I used visual studio 17.3.4. I published WPF app as self contained in .NET 9 to folder , the publish process succeeded. But the generating exe is not running ? Why? How it can be solved ? Thanks,

.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,202 questions
asked Apr 2, 2025, 3:00 PM
Dani_S 4,361 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 MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,054 questions
asked Apr 1, 2025, 7:21 PM
Matt FitzGerald-Chamberlain 0 Reputation points
commented Apr 2, 2025, 2:06 PM
Matt FitzGerald-Chamberlain 0 Reputation points
1 answer

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,054 questions
asked Apr 1, 2025, 6:56 AM
Dani_S 4,361 Reputation points
commented Apr 2, 2025, 10:08 AM
Dani_S 4,361 Reputation points
0 answers

Unable to Publish .NET MAUI iOS App for Ad-Hoc Distribution

Hi, I have been following the steps outlined in this guide to publish my .NET MAUI iOS app for ad-hoc distribution. However, I am encountering an issue in the "Publish the app" section, specifically at Step 5. When I attempt to archive the app…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,054 questions
asked Apr 1, 2025, 11:13 PM
Ha Hoang Nong 0 Reputation points
edited a comment Apr 2, 2025, 8:21 AM
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,331 Reputation points Microsoft External Staff
0 answers

AADSTS165000: invalid Request: The request tokens do not match the user context,

MAUI. Android app, use Oauth2D to login. Always get the error: Requestld:50664542-03a0-48dc-b330-acf123cf9f00 Correlationld:27fdf9bd-1dd4-4b3b-a556-34f7c03c17af Timestamp:2025-04-02T02:58:37Z Message:AADSTS165000: invalid Request: The request tokens do…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,054 questions
asked Apr 2, 2025, 5:47 AM
AlexJK 6 Reputation points
commented Apr 2, 2025, 7:20 AM
AlexJK 6 Reputation points
2 answers

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,054 questions
asked Mar 31, 2025, 4:59 PM
Dani_S 4,361 Reputation points
commented Apr 2, 2025, 6:36 AM
Dani_S 4,361 Reputation points
2 answers

Clickonce: error of downloading application file for Install Mode and Settings: This application is available online only

Hi I have the following Windows forms application which is used to publish by ClickOnce technology. When I publish the application with "Install Mode and Settings: This application is available online only". The setup.exe is generated in…

.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,202 questions
asked Apr 2, 2025, 1:58 AM
Carlos 0 Reputation points
answered Apr 2, 2025, 5:57 AM
Himachal Honeymoon Packages 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,054 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
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,054 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,054 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,054 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 25 Reputation points
commented Apr 1, 2025, 1:04 AM
FEDERER ROGER 25 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