16,541 questions with .NET-related tags

Sort by: Updated
0 answers

Create a build pipeline with Azure Pipelines - Get the sample application

Hello, I am having difficulties following the training material in the section below: Create a build pipeline with Azure…

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
27 questions
asked Apr 21, 2025, 11:51 PM
CoachSergio 0 Reputation points
1 answer

Building a MAUI app from Visual studio 2022 on Windows to run it on Mac, Mac acts as a remote build host. ?

Hi, I have created the MAUI and Paired to the Mac system using ip address from Visual studio. Selected the target as "Mac Catalyst" and while running from VS in windows i am getting below error, Same way i tried from another windows…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,070 questions
asked Apr 21, 2025, 11:08 AM
Iyyappan, Murugan 0 Reputation points
answered Apr 21, 2025, 8:38 PM
Bruce (SqlWork.com) 74,531 Reputation points
1 answer

Add a new tab in the web outlook

Hi, Aim: I want to add a new tab in the web outlook, the tab will be in the ribbon. There is any way to achieve that the tab will includes a buttons that trigger an API for sending email or do something else. Thanks in advance,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,070 questions
asked Apr 2, 2025, 10:12 AM
Dani_S 4,461 Reputation points
commented Apr 21, 2025, 6:56 PM
Bruce (SqlWork.com) 74,531 Reputation points
1 answer

Is converting website to mobile app better than creating one with Xamarin?

Hi, If I am a weak developer would that be better if I just convert website to Android app instead of creating one with Xamarin. I mean, my app doesn't have to be great and stuff because its only a company landing page so no complicated stuff needed.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,378 questions
asked Jun 5, 2021, 3:27 PM
MarcoDeSanta 1 Reputation point
commented Apr 21, 2025, 3:21 PM
Chris Bale 0 Reputation points
0 answers

How can I use BinaryFormatter in .net 8 application

I'm migrating .net application from .net 4.7.2 to .net 8. I had used BinaryFormatter for serialization and deserialization in my application but it is obsolete in .net 8. Still I want to use binaryFormatter in upgraded .net 8 application temporarily…

.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,213 questions
asked Apr 21, 2025, 10:47 AM
Aman Agrahari 20 Reputation points
commented Apr 21, 2025, 11:46 AM
RLWA32 48,056 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
edited a comment Apr 21, 2025, 9:46 AM
Søren 0 Reputation points
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.
27 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,531 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,213 questions
asked Apr 8, 2025, 1:17 PM
Dani_S 4,461 Reputation points
accepted Apr 20, 2025, 8:57 AM
Dani_S 4,461 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,213 questions
asked Apr 15, 2025, 3:40 AM
Dani_S 4,461 Reputation points
accepted Apr 20, 2025, 8:54 AM
Dani_S 4,461 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,070 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,070 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,213 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
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,531 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,070 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,213 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,213 questions
asked Jan 17, 2024, 3:39 PM
Sponsel, Carsten 5 Reputation points
commented Apr 18, 2025, 3:08 PM
Bruce (SqlWork.com) 74,531 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,213 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,213 questions
asked Jan 17, 2024, 3:39 PM
Sponsel, Carsten 5 Reputation points
commented Apr 18, 2025, 3:08 PM
Bruce (SqlWork.com) 74,531 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