16,531 questions with .NET-related tags

Sort by: Updated
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, 4:20 PM
Dani_S 4,421 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,063 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,063 questions
asked Mar 19, 2025, 9:33 AM
NickNN 40 Reputation points
commented Apr 16, 2025, 1:58 PM
NickNN 40 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 16, 2025, 12:46 PM
Amjad Khan 41 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,470 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 521 Reputation points
accepted Apr 16, 2025, 9:38 AM
929Free 521 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,063 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,063 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
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
commented Apr 14, 2025, 9:04 PM
Dennis Vossen 1 Reputation point
1 answer

how to enable debug in release mode in MAUI mobile application

How can I enable debugging in release mode? Some functionalities are not working when I release the app, but they work in debug mode. I've tried multiple methods but haven't found a proper solution. Inside .csproj file <PropertyGroup…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,063 questions
asked Oct 27, 2024, 2:49 PM
Bhuwan 821 Reputation points
commented Apr 14, 2025, 6:53 PM
James Pridgen 0 Reputation points
1 answer

Auth pages with auto render mode in blazor

I want to build a Blazor 8 or 9 project using Interactive Auto . But I want to implement authentication using JWT or identity , so that whenever I want, I can show the login page inside a modal or elsewhere.( without refresh page or ... ) Because…

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, 4:46 PM
Mahdi Elahi 31 Reputation points
edited an answer Apr 14, 2025, 4:53 PM
Bruce (SqlWork.com) 74,066 Reputation points
0 answers

Deployed C# API is not accessible, swagger, routes, all return 404

I was able to connect my github repo, github action auto-deployment on commit. Builds and deploys successfully (creating artifact) from the yml script Azure I auto-generated and committed to my repo. Azure overview page says my app is running good, no…

.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 14, 2025, 3:49 AM
Eric Milliot 0 Reputation points