16,537 questions with .NET-related tags

Sort by: Updated
1 answer

Please suggest me Alternatives for BinaryFormatter in .net 8 since it is obsolete in it.

I am migrating the .net 4.7.2 application to .net 8. Earlier we used BinaryFormatter for serialization and Deserialization but it is not available in .net 8. So I want any alternative to BinaryFormatter which I can implement in my .net 8…

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
26 questions
asked Apr 19, 2025, 6:32 PM
Aman Agrahari 20 Reputation points
edited an answer Apr 21, 2025, 3:27 AM
Bruce (SqlWork.com) 74,451 Reputation points
2 answers

AmbiguousMatchException in net8 Blazor web app

I am encountering an AmbiguousMatchException error in my client-side Blazor web app. The error message says "The request matched multiple endpoints. Matches: Fallback {*path:nonfile}". I tried to add app.razor containing this lines…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
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
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
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 Jan 6, 2024, 6:25 PM
ayman awadallah 30 Reputation points
answered Apr 21, 2025, 1:11 AM
master_lam 0 Reputation points
2 answers

AmbiguousMatchException in net8 Blazor web app

I am encountering an AmbiguousMatchException error in my client-side Blazor web app. The error message says "The request matched multiple endpoints. Matches: Fallback {*path:nonfile}". I tried to add app.razor containing this lines…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
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
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
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 Jan 6, 2024, 6:25 PM
ayman awadallah 30 Reputation points
answered Apr 21, 2025, 1:11 AM
master_lam 0 Reputation points
1 answer One of the answers was accepted by the question author.

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,212 questions
asked Apr 8, 2025, 1:17 PM
Dani_S 4,441 Reputation points
accepted Apr 20, 2025, 8:57 AM
Dani_S 4,441 Reputation points
1 answer One of the answers was accepted by the question author.

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,212 questions
asked Apr 15, 2025, 3:40 AM
Dani_S 4,441 Reputation points
accepted Apr 20, 2025, 8:54 AM
Dani_S 4,441 Reputation points
0 answers

How to cancel navigation to a page in .NET MAUI

Please tell me how I can stop navigation to a page in a .NET MAUI Shell app if, for example, the user is not authorized to access the page. I have a nice authentication system and I have access and refresh tokens for communicating with the server, but…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,068 questions
asked Apr 19, 2025, 2:16 AM
Marcus Wolfe 20 Reputation points
commented Apr 20, 2025, 12:59 AM
Marcus Wolfe 20 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 19, 2025, 8:46 PM
Hayk Shirinyan 0 Reputation points
0 answers

Splash Screen not showing up for windows build on .net maui

Hello all, So I created a simple custom splash screen, it works for android but not on a windows desktop. Here is the code public partial class SplashScreen : ContentPage { private ContinousAudio continousAudio; public…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,068 questions
asked Apr 19, 2025, 8:11 PM
anandarus allen 0 Reputation points
1 answer One of the answers was accepted by the question author.

What are the alternatives available for System.Messaging package in .net 8

I'm migrating .net 4.7.2 to .net 8.0. The System.Messaging package is not available in .net 8. How can I resolve the errors below errors - The type or namespace name 'Messaging' does not exist in the namespace 'System' (are you missing an assembly…

.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,212 questions
asked Apr 9, 2025, 4:47 AM
Aman Agrahari 20 Reputation points
accepted Apr 19, 2025, 6:33 PM
Aman Agrahari 20 Reputation points
0 answers

Error with Microsoft .Net Framework prohibits me from shutting off laptop.

Hello, Since purchasing and using this Lenovo Yoga laptop I have for the past two years been experiencing this error when I try to shut down the PC after having used it for about an hour or more. Does anyone have any experienced this before and knows a…

.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.
129 questions
asked Apr 19, 2025, 4:43 PM
Søren 0 Reputation points
commented Apr 19, 2025, 4:54 PM
Viorel 121.3K Reputation points
2 answers

Blazor Server .NET 8 authorization Dependency Injection User Settings

I have a IUserSettings interface to use between Blazor and a Desktop. I have a task in the interface called Task GetUserSettingsAsync(AuthenticationStateProvider authenticationStateProvider). Once the website comes back from Microsoft Entra, I want to…

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 Apr 3, 2025, 9:03 PM
Dennis Vossen 1 Reputation point
edited a comment Apr 19, 2025, 3:51 PM
Bruce (SqlWork.com) 74,451 Reputation points
1 answer

>Net Maui - Passing object between pages

I'm having trouble getting my DetailsPage to show the Observation obs object passed from my ResultsPage. I have a TapGestureRecognizer_Tapped method in the code behind the ResultsPage private async void TapGestureRecognizer_Tapped(object sender,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,068 questions
asked Apr 18, 2025, 6:06 AM
John Rutherford 21 Reputation points
answered Apr 19, 2025, 3:05 AM
John Rutherford 21 Reputation points
3 answers

.NET 6 / .NET 8 migration, downward compatible

Hi, we started migrating parts of our large project from .NET 4.x to .NET 6 in beginning of 2023. When we started, .NET 8 hadn't existed. It was quite some big effort to do this. Now we will release our product soon. Until the product is at the customer…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 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,212 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 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,212 questions
asked Jan 17, 2024, 3:39 PM
Sponsel, Carsten 5 Reputation points
commented Apr 18, 2025, 3:08 PM
Bruce (SqlWork.com) 74,451 Reputation points
3 answers

.NET 6 / .NET 8 migration, downward compatible

Hi, we started migrating parts of our large project from .NET 4.x to .NET 6 in beginning of 2023. When we started, .NET 8 hadn't existed. It was quite some big effort to do this. Now we will release our product soon. Until the product is at the customer…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 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,212 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 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,212 questions
asked Jan 17, 2024, 3:39 PM
Sponsel, Carsten 5 Reputation points
commented Apr 18, 2025, 3:08 PM
Bruce (SqlWork.com) 74,451 Reputation points
2 answers

Unable to load the service index for source https://api.nuget.org/v3/index.json while restoring nuget packages in VS 2022.

Hi All, I am getting the error "Unable to load the service index for source https://api.nuget.org/v3/index.json while restoring Nuget packages in VS 2022. I have tried to delete Nuget config file as well but it did not help. Can anyone please…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
asked Jun 11, 2024, 10:51 AM
Munjal, Kanha (Gurugram) 5 Reputation points
commented Apr 18, 2025, 1:07 PM
Sergio Torres 21 Reputation points
4 answers

How to register .net 8 build activex so that test program can run access it from different folder

I can run C:\Windows\syswow64\regsvr32 to register my activex.dll which is stored at the C:\Program Files (x86)\AA but the test program, test.exe, could not access it from C: \Program Files (x86)\BB folder. Any thought?

.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,212 questions
asked Apr 17, 2025, 7:07 PM
Oliver Lan 0 Reputation points
edited an answer Apr 18, 2025, 8:50 AM
RLWA32 47,971 Reputation points
1 answer One of the answers was accepted by the question author.

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,068 questions
asked Apr 15, 2025, 8:30 PM
Min T 81 Reputation points
commented Apr 17, 2025, 5:08 PM
Min T 81 Reputation points
1 answer

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,068 questions
asked Apr 13, 2025, 12:30 PM
mc 5,186 Reputation points
answered Apr 17, 2025, 3:35 PM
Bruce (SqlWork.com) 74,451 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
edited a comment Apr 17, 2025, 3:15 PM
Bruce (SqlWork.com) 74,451 Reputation points
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,068 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