16,480 questions with .NET-related tags

Sort by: Updated
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 2025-03-25T18:48:29.5166667+00:00
Steve Rehling 105 Reputation points
edited an answer 2025-03-27T16:13:44.3+00:00
Steve Rehling 105 Reputation points
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 2025-03-26T09:54:59.88+00:00
Prathamesh Shende 381 Reputation points
answered 2025-03-27T15:53:17.6833333+00:00
Bruce (SqlWork.com) 73,181 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 2025-03-24T14:55:08.8066667+00:00
HARSHA VARDHAN NAKKA 15 Reputation points
commented 2025-03-27T15:26:38.18+00:00
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 2025-03-27T13:46:27.9466667+00:00
Nikhil Sathawara 0 Reputation points
edited the question 2025-03-27T13:48:00.1033333+00:00
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 2025-03-27T10:26:59.3466667+00:00
Dani_S 4,341 Reputation points
commented 2025-03-27T10:28:27.4933333+00:00
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 2025-03-27T10:16:31.5+00:00
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 2025-03-27T08:28:45.5666667+00:00
Dani_S 4,341 Reputation points
commented 2025-03-27T10:03:06.4766667+00:00
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 2025-03-27T09:38:37.8066667+00:00
Giorgio Sfiligoi 366 Reputation points
edited the question 2025-03-27T09:41:30.06+00:00
Giorgio Sfiligoi 366 Reputation points
0 answers

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 2025-03-27T07:29:46.95+00:00
Shashank Gaddam [C] 0 Reputation points
commented 2025-03-27T08:34:10.4066667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,331 Reputation points Microsoft External Staff
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 2025-03-21T09:20:57.0466667+00:00
Dani_S 4,341 Reputation points
commented 2025-03-27T07:47:17.01+00:00
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 2025-03-27T06:27:59.87+00:00
Shashank Gaddam [C] 0 Reputation points
commented 2025-03-27T07:38:17.4933333+00:00
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 2025-03-24T08:37:27.1566667+00:00
Dani_S 4,341 Reputation points
commented 2025-03-27T06:31:04.8033333+00:00
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 2025-03-25T14:54:13.4066667+00:00
Adrian Lewis 20 Reputation points
edited an answer 2025-03-27T04:31:02.44+00:00
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 2025-03-19T10:07:20.5066667+00:00
Vaibhav Methuku 160 Reputation points
commented 2025-03-27T02:18:18.9833333+00:00
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 2025-03-26T12:28:08.53+00:00
Sowndarrajan Vijayaragavan 450 Reputation points
edited a comment 2025-03-27T02:03:41.5666667+00:00
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 2024-01-09T06:24:42.1566667+00:00
Thombre, Ashish 130 Reputation points
answered 2025-03-26T23:53:23.24+00:00
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 2024-08-07T06:37:14+00:00
Shane 0 Reputation points
edited an answer 2025-03-26T23:39:54.4933333+00:00
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 2025-02-21T16:50:34.97+00:00
Brian Johnson 0 Reputation points
answered 2025-03-26T20:53:05.0866667+00:00
Brian Johnson 0 Reputation points
1 answer

Deploying .NET 8 Blazor Interactive server to an "app" in IIS

Am trying to install a blazor 8 server app on IIS. Everything works fine within VS2022, but once I deploy the files to IIS I get some errors. I've tried <base href="/BlazorApp4/" /> or <base href="/" /> and …

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 2024-10-25T20:19:56.91+00:00
Steve Wasielewski 5 Reputation points
commented 2025-03-26T14:00:10.49+00:00
Kyler Brown 0 Reputation points
2 answers

Hosting Bundle 8.0.11 does not install .Net Runtime

Hi, Everything was working as expected until hosting bundle version 8.0.7. Started seeing issues from later versions. Until 8.0.7, installing hosting bundle included all components like Windows Server Hosting, .Net Runtime, Asp.Net Core Shared…

.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 2024-11-29T13:59:02.57+00:00
AEDDULA Nagababu 0 Reputation points
edited an answer 2025-03-26T13:56:13.3666667+00:00
Ole Kristian Hustad 0 Reputation points