16,529 questions with .NET-related tags

Sort by: Updated
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,051 Reputation points
0 answers

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
edited the question Apr 15, 2025, 4:27 PM
Chad Holmes 0 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
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.
24 questions
asked Apr 13, 2025, 6:38 PM
Hayk Shirinyan 0 Reputation points
commented Apr 15, 2025, 4:15 AM
Hayk Shirinyan 0 Reputation points
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,062 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
0 answers

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
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.
24 questions
asked Apr 13, 2025, 3:26 PM
Mahdi Elahi 31 Reputation points
edited a comment Apr 14, 2025, 10:40 PM
Bruce (SqlWork.com) 74,051 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.
344 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.
344 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.
344 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.
344 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,062 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.
24 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,051 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
1 answer

Appinsight setup without auto instrumentation

By default if you have an app service and you set up appinsight for it. Auto instrumentation is enabled. I'd like to disable it but I don't see in bicep provider any param for appinsight to do that…

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.
24 questions
asked Apr 11, 2025, 3:45 PM
Oussama Dhouioui 20 Reputation points Microsoft Employee
answered Apr 14, 2025, 3:27 AM
Pradeep M 7,465 Reputation points Microsoft External Staff
1 answer

how to draw this in .net.android

there is two points to one circle how to draw it? I am using canvas in OnDraw points:(p0x,p0y)and (p1x,p1y) and the center of the circle is (x,y) how to draw the line and the circle? I know how to draw circle but I do not want to draw the rest of the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,062 questions
asked Mar 12, 2025, 2:29 PM
mc 5,186 Reputation points
answered Apr 13, 2025, 4:22 PM
Bruce (SqlWork.com) 74,051 Reputation points
1 answer

can azure function uses storage account non azure specific for maintaining bindings and triggers namely gcp , aws

can azure function uses storage account non azure specific for maintaining bindings and triggers namely gcp , aws

.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 13, 2025, 2:52 PM
Mishra, Priyank Kumar 0 Reputation points
answered Apr 13, 2025, 2:52 PM
Q&A Assist
0 answers

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

I am using xamarin.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?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked Apr 13, 2025, 12:39 PM
mc 5,186 Reputation points
0 answers

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

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

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked Apr 13, 2025, 12:30 PM
mc 5,186 Reputation points
0 answers

Seeking Support in Encrypted Video Streaming with WPF and LibVLC

Hello, I've developed a video player project using C#, WPF, and .NET 5. In this application, encrypted MKV videos (encrypted with AES) are first decoded as offline streams, then buffered in memory and finally sent to LibVLC for playback. The issue I'm…

.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 13, 2025, 5:30 AM
Kamyab Faghih 70 Reputation points
0 answers

Why does my .NET MAUI 8.0.100 iOS TestFlight app using Microsoft.Data.SqlClient crash immediately

I submitted my app for Apple's TestFlight. After deploying using TestFlight to my iPhone, it crashes immediately, not getting to any of my application code. This also an iOS device I've provisioned for development testing, so on my Mac build machine, I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,062 questions
asked Apr 7, 2025, 1:01 AM
Kurt K 176 Reputation points
commented Apr 12, 2025, 6:21 PM
Kurt K 176 Reputation points