16,501 questions with .NET-related tags

Sort by: Updated
2 answers

I get cswinrt.rsp exited with error code 1 when compiling for ios simulator

Building for local iOS iPhone is OK. Only fails when building for iOS simulator. Visual Studio is running on a PC and paired to a Mac. 1>EXEC : error : Path '18.2' is not a file or…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,056 questions
asked Mar 21, 2025, 3:54 PM
Steve Brooke 40 Reputation points
edited a comment Apr 3, 2025, 2:33 PM
Christopher Hofmeister 0 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,201 questions
asked Apr 2, 2025, 1:58 AM
Carlos 0 Reputation points
commented Apr 3, 2025, 12:55 PM
Carlos 0 Reputation points
0 answers

Line number and path or file name missing when logs maintain in azure applicationinsights for blazorWASM application

I had develop blazorWASM application logs using these links. I had used .NET core 6.0.I had use ILoggers<Type> logger…

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
21 questions
asked Apr 3, 2025, 12:46 PM
ramesh P 0 Reputation points
edited the question Apr 3, 2025, 12:49 PM
ramesh P 0 Reputation points
0 answers

HttpClient - Uploading file through API is taking more time in .NETMAUI(.NETCore 8.0) compared to Xamarin.Forms

In MAUI application from Android device, I am uploading file through API via HttpClient into controller. In Xamarin.Forms upload file is taking 3 minutes of time, but after migrating into .NET MAUI uploading is taking 6 minutes of time. I am suspecting…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,056 questions
asked Apr 3, 2025, 9:42 AM
Venkatareddy Desireddy 0 Reputation points
1 answer

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,056 questions
asked Apr 2, 2025, 5:47 AM
AlexJK 6 Reputation points
commented Apr 3, 2025, 8:50 AM
AlexJK 6 Reputation points
0 answers

Create an IPA from Windows MAUI iOS + Extensions

Hi, we have a MAUI project with iOS extensions. We can run them on emulators and create the IPA either in Visual Studio or Visual Code on a Mac. Due to dotfuscator issues, we need to create the IPA, but now from Windows! We can create the IPA using the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,056 questions
asked Mar 14, 2025, 10:08 PM
DAVIS JIMENEZ PETER ALEXANDER 20 Reputation points
commented Apr 3, 2025, 8:45 AM
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,331 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

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,056 questions
asked Apr 1, 2025, 6:56 AM
Dani_S 4,381 Reputation points
accepted Apr 3, 2025, 7:51 AM
Dani_S 4,381 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,056 questions
asked Apr 1, 2025, 11:13 PM
Ha Hoang Nong 0 Reputation points
commented Apr 3, 2025, 7:36 AM
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,331 Reputation points Microsoft External Staff
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 XCode 16.3 (16e140) Mac OS Sequoia 15.3.2 Visual Studio Code 1.98.2 (Universal) I am developing a MAUI App that needs to run on Windows, MacOS and iOS (iPad only). I am trying to get…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,056 questions
asked Apr 2, 2025, 5:27 PM
Alex Phillips 0 Reputation points
commented Apr 3, 2025, 7:31 AM
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,331 Reputation points Microsoft External Staff
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,056 questions
asked Apr 2, 2025, 3:16 PM
Dani_S 4,381 Reputation points
commented Apr 3, 2025, 7:08 AM
Dani_S 4,381 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,056 questions
asked Apr 1, 2025, 11:02 AM
Raul DURAN RACERO 0 Reputation points
commented Apr 3, 2025, 6:48 AM
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,776 Reputation points Microsoft External Staff
1 answer

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,056 questions
asked Apr 2, 2025, 3:05 PM
Dani_S 4,381 Reputation points
commented Apr 3, 2025, 6:42 AM
Dani_S 4,381 Reputation points
0 answers

Win11 - User32.GetRawInputData fails to read data since 24H2

Background: We are using HwndHost class to host child window inside WPF application. From WndProc method we are forwarding input messages (WM_INPUT) to child process/window using User32.SendMessage. The child process/window WndProc method then receives…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,850 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,247 questions
asked Jan 28, 2025, 4:38 PM
Vít H 0 Reputation points
edited a comment Apr 3, 2025, 6:38 AM
현성 김 0 Reputation points
0 answers

Toolkit DrawingView is giving AndroidRuntime] java.lang.RuntimeException: Canvas: trying to draw too large(216039040bytes) bitmap.

Toolkit DrawingView is giving AndroidRuntime] java.lang.RuntimeException: Canvas: trying to draw too large(216039040bytes) bitmap when I draw a single horizontal line after reading from Memory stream await using var stream = await…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,056 questions
asked Apr 3, 2025, 6:03 AM
Shashank Gaddam [C] 20 Reputation points
1 answer

.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,056 questions
asked Apr 1, 2025, 7:21 PM
Matt FitzGerald-Chamberlain 0 Reputation points
edited an answer Apr 2, 2025, 10:58 PM
Bruce (SqlWork.com) 73,501 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,501 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,056 questions
asked Mar 31, 2025, 4:59 PM
Dani_S 4,381 Reputation points
commented Apr 2, 2025, 6:36 AM
Dani_S 4,381 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,056 questions
asked Mar 24, 2025, 8:37 AM
Dani_S 4,381 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,980 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