16,531 questions with .NET-related tags

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

Entry Focus issue in scroll view Maui

I had created a view with 30 entries in a scroll view, for suppose I focus on the 16 entry and click in the background Entry 1 is being focused automatically. Here is the code for reference. <ScrollView BackgroundColor="Green" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,065 questions
asked Mar 24, 2025, 4:37 PM
Vaibhav Methuku 160 Reputation points
commented Apr 17, 2025, 5:54 AM
Vaibhav Methuku 160 Reputation points
0 answers

.Net MAUI - Microsoft.Identity.Client with latest Version="4.66.2" is giving the exception as "To enable the embedded webview on Windows, reference Microsoft.Identity.Client.Desktop and call the extension method .WithWindowsEmbeddedBrowserSupport()."

Hello, I was using the Microsoft.Identity.Client with version 4.60.3 is giving the vulnerable error. Hence I recently upgraded my Microsoft.Identity.Client version from "4.60.3" to 4.66.2. Previous versions <PackageReference…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,065 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,157 questions
asked Nov 22, 2024, 10:48 AM
Thanniru, Anitha 5 Reputation points
commented Apr 17, 2025, 4:14 AM
Vaibhav Methuku 160 Reputation points
2 answers One of the answers was accepted by the question author.

I have a Blazor App for .NET using the server mode. I now want to add wasm mode to it as well. What changes are required?

I started my project that uses the Blazor Server template from Visual Studio 2022 for .NET8. I now realize I want to add a wasm project to it as well so can take advantage of auto mode. What changes are required in the server project so my components can…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 questions
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,672 questions
asked Aug 30, 2024, 6:26 AM
Amjad Khan 41 Reputation points
commented Apr 17, 2025, 3:13 AM
Amjad Khan 41 Reputation points
0 answers

how to write and read file in usb storage in .net -android?

I have android pad and there is usb disk and how to read file and write file ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,065 questions
asked Apr 13, 2025, 12:30 PM
mc 5,186 Reputation points
edited the question Apr 17, 2025, 2:09 AM
mc 5,186 Reputation points
0 answers

how to change the icon in properties of the APP in .net - android?

I am using .net android and I have changed the appicon of the APP in desktop but when I open the properties the appicon is still the original ('.NET') icon how to change it?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,065 questions
asked Apr 13, 2025, 12:39 PM
mc 5,186 Reputation points
edited the question Apr 17, 2025, 2:09 AM
mc 5,186 Reputation points
1 answer

Directory.EnumerateFiles vs Directory.Delete

Hi, Are this code: var dir = new DirectoryInfo(viewDeviceItem.Path); dir.Delete(true); Equivalent to: using System; using System.IO; class Program { static void Main() { string directoryPath = @"C:\path\to\your\directory"; // Specify your…

.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,211 questions
asked Apr 15, 2025, 3:40 AM
Dani_S 4,421 Reputation points
commented Apr 16, 2025, 10:27 PM
Bruce (SqlWork.com) 74,066 Reputation points
4 answers One of the answers was accepted by the question author.

Why isn't Visual Basic developed like C#?

In fact, I feel very upset with Microsoft's strategy towards the Visual Basic language. You are practicing euthanasia for this language and losing a large base of programmers who prefer to deal with this language. You have wasted the expertise of these…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,818 questions
asked Jan 29, 2024, 6:32 PM
Hassan Farouk 25 Reputation points
commented Apr 16, 2025, 4:00 PM
Hassan Farouk 25 Reputation points
1 answer

Latest Update

What is the latest update verified that supports MS Graph API as we are currently testing all phases

.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.
128 questions
asked Apr 15, 2025, 4:13 PM
Chad Holmes 0 Reputation points
answered Apr 16, 2025, 3:39 PM
Bruce (SqlWork.com) 74,066 Reputation points
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,065 questions
asked Apr 2, 2025, 5:27 PM
Alex Phillips 0 Reputation points
commented Apr 16, 2025, 3:23 PM
Alex Phillips 0 Reputation points
1 answer

MAUI: Firebase Analytics iOS.

I'm trying to configure the Firebase in my library project, but when the sample project references the library project, I get an error when compiling. (Not when compiling the library, but the project.) I'm using Xamarin.Firebase.iOS.Analytic and…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,065 questions
asked Mar 19, 2025, 9:33 AM
NickNN 40 Reputation points
commented Apr 16, 2025, 1:58 PM
NickNN 40 Reputation points
1 answer

Blazor Server App Crushes on Deployment Slot Swap

We have a Blazor Server app that crushes sometimes when we swap deployment slots. We use Managed Identity in our database connection string to connect to an SQL Server database in Azure. It seems like a database connection issue. Can you please help…

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.
25 questions
asked Apr 13, 2025, 6:38 PM
Hayk Shirinyan 0 Reputation points
commented Apr 16, 2025, 12:12 PM
Pradeep M 7,545 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Blazor web App No authenticationScheme was specified?

Hello, I added @attribute [Authorize (Roles="Administrator")] in test.razor component, Non Administrator role error when logging in. Error Info: An unhandled exception occurred while processing the request. InvalidOperationException: No…

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.
25 questions
asked Apr 16, 2025, 5:34 AM
929Free 541 Reputation points
accepted Apr 16, 2025, 9:38 AM
929Free 541 Reputation points
1 answer

Add Timer To Login Page In Blazor

Hi i create new blazor 8 web app auto render I want to define a C# timer on the default login page razor private TimeSpan timeLeft = TimeSpan.FromMinutes(1).Add(TimeSpan.FromSeconds(59)); private System.Timers.Timer? countdownTimer; private void…

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.
25 questions
asked Apr 13, 2025, 3:26 PM
Mahdi Elahi 31 Reputation points
edited a comment Apr 16, 2025, 2:55 AM
Mahdi Elahi 31 Reputation points
1 answer

Delete folder from bit locker throw exception

Hi, The exception: 2025-04-08 16:09:51,501 [1] ERROR GssdDesktopClient.Maui.ViewModels.CopyViewModel - DeleteFolderCommandExcute System.IO.IOException: No mapping for the Unicode character exists in the target multi-byte code page. : 'E:\גגגגגגג'.    at…

.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,211 questions
asked Apr 8, 2025, 1:17 PM
Dani_S 4,421 Reputation points
edited a comment Apr 15, 2025, 10:33 PM
Dani_S 4,421 Reputation points
1 answer

dotnet workload restore issue

came back to an old brooding .net maui project from last year. at the time, it was compiling and running fine. after starting it up again, ive run into compile issues. Error (active) NETSDK1147 To build this project, the following workloads must be…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,065 questions
asked Apr 15, 2025, 8:30 PM
Min T 61 Reputation points
answered Apr 15, 2025, 9:05 PM
Bruce (SqlWork.com) 74,066 Reputation points
2 answers

How to enable CSP in asp:UpdatePanel without having to write 'unsafe-inline'

I have an asp:UpdatePanel and asp:ScriptManager in my web form. When I enable CSP in the web.config as below, the functionality of the pages are not working like 'OnSelectedIndexChanged' event of asp:DropDownList and many more. <add…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,598 questions
asked May 8, 2024, 2:30 PM
Preeti Gupta 0 Reputation points
edited an answer Apr 15, 2025, 7:53 PM
Bruce (SqlWork.com) 74,066 Reputation points
0 answers

I m getting live metrics in application insights. But the logs in custom events are missing for a specific time of the day and available during other hours.

I have enabled application insights for my app services . I have added code in my project to get the logs in custom events. The logs are successfully getting into the app insights. Hence the connection & networking are fine. The live metrics can be…

.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,211 questions
asked Apr 15, 2025, 7:27 AM
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,065 questions
asked Mar 31, 2025, 4:59 PM
Dani_S 4,421 Reputation points
edited a comment Apr 15, 2025, 3:42 AM
Dani_S 4,421 Reputation points
2 answers

Why can't I change directory path of dotnet core sdk from C drive to S drive?

After a long try, I installed the dotnet core on my computer. But the location PATH in the environment automatically stores the installed data of the dotnet core in the C drive. I want to change the directory path to S drive. How can I change the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
346 questions
.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,211 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
346 questions
.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,211 questions
asked Apr 27, 2022, 5:11 PM
ANUPRIYA B 1 Reputation point
commented Apr 14, 2025, 10:30 PM
Kacper Paśnik 0 Reputation points
2 answers

Why can't I change directory path of dotnet core sdk from C drive to S drive?

After a long try, I installed the dotnet core on my computer. But the location PATH in the environment automatically stores the installed data of the dotnet core in the C drive. I want to change the directory path to S drive. How can I change the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
346 questions
.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,211 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
346 questions
.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,211 questions
asked Apr 27, 2022, 5:11 PM
ANUPRIYA B 1 Reputation point
commented Apr 14, 2025, 10:30 PM
Kacper Paśnik 0 Reputation points