16,480 questions with .NET-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,042 questions
asked Mar 1, 2024, 8:04 AM
Mane, PRASHANT GORAKH 106 Reputation points
answered Mar 27, 2025, 7:52 PM
Prescott Chartier 1 Reputation point
2 answers

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,667 questions
asked Mar 26, 2025, 9:54 AM
Prathamesh Shende 381 Reputation points
commented Mar 27, 2025, 6:33 PM
Prathamesh Shende 381 Reputation points
1 answer

Control Not Visible on Smaller Screens or High-Scale Displays in MAUI

I have a custom control in my .NET MAUI application that is not visible under the following conditions: The screen size is less than 15.6 inches The resolution is lower than 1920 x 1080 The display scale is greater than 125% The control works…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,042 questions
asked Mar 15, 2025, 5:54 PM
Rohan Savnani 0 Reputation points
edited an answer Mar 27, 2025, 6:32 PM
Santiago Porras Rodríguez 0 Reputation points MVP
1 answer

System.Net.Http.HttpRequestException: Error while copying content to a stream. ---> System.ObjectDisposedException: Cannot access a disposed object

System.Net.Http.HttpRequestException: Error while copying content to a stream. ---> System.ObjectDisposedException: Cannot access a disposed object I am getting above error for the first API call at 'await…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,042 questions
asked Mar 27, 2025, 7:29 AM
Shashank Gaddam [C] 0 Reputation points
edited an answer Mar 27, 2025, 6:29 PM
Santiago Porras Rodríguez 0 Reputation points MVP
2 answers

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,667 questions
asked Mar 25, 2025, 6:48 PM
Steve Rehling 105 Reputation points
edited an answer Mar 27, 2025, 4:13 PM
Steve Rehling 105 Reputation points
1 answer

.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 15 Reputation points
commented Mar 27, 2025, 3:26 PM
Justin Dane Reinhart 0 Reputation points
0 answers

Class not found error while binding aar library

I am trying to bind aar library called "autoreplyprint.aar", following is the aar file link https://techcedenceinfosystems-my.sharepoint.com/:u:/g/personal/nikhils_techcedence_com/EWaUK8Wi89FNlbHqEQGyHlkBBSKkR_wxL9HkL7hc-FKChg?e=xvKwRK I have…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,042 questions
asked Mar 27, 2025, 1:46 PM
Nikhil Sathawara 0 Reputation points
edited the question Mar 27, 2025, 1:48 PM
Nikhil Sathawara 0 Reputation points
0 answers

Extract to flatten failed but give success message

Hi, I have this code in windows , net 9. I'm download zip or big file file as "flatten" from our website when using DownloadCommand and action is failed and I got success message. This code is problematic in case the ExtractToFile take two…

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

Installing virtual printer using PSA

I am trying to create a Virtual Printer (for print to pdf) using PSA as documented here https://learn.microsoft.com/en-us/windows-hardware/drivers/devapps/print-support-app-v4-design-guide After creating and deploying the solution from visual…

.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 Mar 27, 2025, 10:16 AM
Ratheesh Pai 0 Reputation points
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,042 questions
asked Mar 27, 2025, 8:28 AM
Dani_S 4,341 Reputation points
commented Mar 27, 2025, 10:03 AM
Dani_S 4,341 Reputation points
0 answers

MSAL AUTHENTICATION GIVES DIFFERENT ID

Playing in Graph Explorer with my MS account I get the following information: User Principal Name: ******@hotmail.com Id: dd81.... DisplayName: Giorgio Sfiligoi Preferred Language: it-IT email: ******@hotmail.com Running the old sample (for…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,042 questions
asked Mar 27, 2025, 9:38 AM
Giorgio Sfiligoi 366 Reputation points
edited the question Mar 27, 2025, 9:41 AM
Giorgio Sfiligoi 366 Reputation points
2 answers One of the answers was accepted by the question author.

Onidiom vs on Platform

Hi, What are the diffrences beween OnIdiom or OnPlatform ? Can you give sample how you yiu use each one? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,042 questions
asked Mar 21, 2025, 9:20 AM
Dani_S 4,341 Reputation points
commented Mar 27, 2025, 7:47 AM
Dani_S 4,341 Reputation points
0 answers

Keyboard height is not being calculated for the first time

I want to bring my editor above the keyboard when focused, but for the first time, keyboardHeight is coming as 0 and it stays behind the keyboard. If I unfocus and focus again, I am getting height of the keyboard I am working on Android private async…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,042 questions
asked Mar 27, 2025, 6:27 AM
Shashank Gaddam [C] 0 Reputation points
commented Mar 27, 2025, 7:38 AM
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,766 Reputation points Microsoft External Staff
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,042 questions
asked Mar 24, 2025, 8:37 AM
Dani_S 4,341 Reputation points
commented Mar 27, 2025, 6:31 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,042 questions
asked Mar 25, 2025, 2:54 PM
Adrian Lewis 20 Reputation points
edited an answer Mar 27, 2025, 4:31 AM
Cliff 1 Reputation point MVP
0 answers

App is crashing which swiping in carousel view in maui

I had implemented the carousel view in android, When im swipping app is getting crashed.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,042 questions
asked Mar 19, 2025, 10:07 AM
Vaibhav Methuku 160 Reputation points
commented Mar 27, 2025, 2:18 AM
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,766 Reputation points Microsoft External Staff
0 answers

The Picker icon is not appearing in .NET MAUI on Windows 11.

.NET 8Installed Workload Id Manifest Version Installation Source android 35.0.39/9.0.100 SDK 9.0.100, VS 17.12.35527.113 aspire 8.2.2/8.0.100 SDK 9.0.100, VS 17.12.35527.113 ios …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,042 questions
asked Mar 26, 2025, 12:28 PM
Sowndarrajan Vijayaragavan 450 Reputation points
edited a comment Mar 27, 2025, 2:03 AM
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 81,186 Reputation points Microsoft External Staff
1 answer

Getting issue while view pdf in .net maui webview for android platform

InitializeComponent(); Microsoft.Maui.Handlers.WebViewHandler.Mapper.AppendToMapping("MyCustomization", (handler, view) => { #if ANDROID handler.PlatformView.Settings.JavaScriptEnabled = true; …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,042 questions
asked Jan 9, 2024, 6:24 AM
Thombre, Ashish 130 Reputation points
answered Mar 26, 2025, 11:53 PM
Cliff 1 Reputation point MVP
1 answer

How can I develop a Windows-only platform using .NET MAUI in Visual Studio Code?

Hello, I installed the MAUI extension for VS Code and the .NET workload. I'm looking to set up a project exclusively for the Windows Desktop platform. However, I've noticed that when I select maui-desktop or maui-windows, the installation still includes…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,042 questions
asked Aug 7, 2024, 6:37 AM
Shane 0 Reputation points
edited an answer Mar 26, 2025, 11:39 PM
Cliff 1 Reputation point MVP
1 answer

Is there a sample MAUI application to call c/c++ libraries that can be built from Windows and used on Windows, iOS and Android?

I am trying to convert my Xamarin.Forms mobile applications to MAUI. My applications depend on C libraries developed by government agencies (NOAA and USNO). For Xamarin.Forms I found a very good example for building a NuGet package from C library code…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,042 questions
asked Feb 21, 2025, 4:50 PM
Brian Johnson 0 Reputation points
answered Mar 26, 2025, 8:53 PM
Brian Johnson 0 Reputation points