16,482 questions with .NET-related tags

Sort by: Updated
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,042 questions
asked Mar 27, 2025, 10:26 AM
Dani_S 4,341 Reputation points
commented Mar 28, 2025, 5:56 AM
Dani_S 4,341 Reputation points
0 answers

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
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
commented Mar 28, 2025, 5:17 AM
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,766 Reputation points Microsoft External Staff
1 answer

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,042 questions
asked Mar 27, 2025, 11:24 PM
Jerry Bonetti 0 Reputation points
answered Mar 28, 2025, 2:18 AM
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,766 Reputation points Microsoft External Staff
1 answer

How to fix 17.13.5 Issue

After updating my VS Studio Community installation to version 17.3.5 from version 17.12.5, I now get the following major error when building my Xamarin Android app: System.UnauthorizedAccessException: Access to the path 'AndroidManifest.xml' is denied. …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,379 questions
asked Mar 27, 2025, 6:32 PM
was 0 Reputation points
answered Mar 28, 2025, 2:07 AM
Timothy Philip Ingram 116 Reputation points
0 answers

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,379 questions
asked Mar 28, 2025, 12:48 AM
Nathan Sokalski 4,111 Reputation points
commented Mar 28, 2025, 2:06 AM
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,766 Reputation points Microsoft External Staff
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
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
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