16,526 questions with .NET-related tags

Sort by: Updated
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) 73,966 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,209 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,209 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,209 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,209 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) 73,966 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,209 questions
asked Apr 14, 2025, 3:49 AM
Eric Milliot 0 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.
24 questions
asked Apr 13, 2025, 6:38 PM
Hayk Shirinyan 0 Reputation points
answered Apr 14, 2025, 3:45 AM
Pradeep M 7,385 Reputation points Microsoft External Staff
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,385 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) 73,966 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,209 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,209 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
1 answer

Upgrading the application from .NET6 to .NET8 and have updated the packages as well and after that I am getting this error.

<PropertyGroup> <TargetFramework>net8.0</TargetFramework> <AzureFunctionsVersion>v4</AzureFunctionsVersion> </PropertyGroup> <ItemGroup> <PackageReference…

.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,209 questions
asked Apr 11, 2025, 11:13 AM
Himanshu Chawla 0 Reputation points
answered Apr 11, 2025, 4:16 PM
Bruce (SqlWork.com) 73,966 Reputation points
0 answers

How to prevent reflective DLL injection in a .NET application

Reflective DLL injection bypasses the standard Windows loader by manually mapping a DLL into memory and resolving its dependencies. This makes load-time checks, including verifying the DLL signature, ineffective. Also, implementing memory monitoring and…

.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,209 questions
asked Apr 11, 2025, 12:52 PM
Pradeep Viswanathan 0 Reputation points
2 answers One of the answers was accepted by the question author.

.net maui fully custom splash screen

I am working on . net maui splash screen but there are android 12 and later issues. So I can not set splash screen like make image like previous android versions. But I want and set it image that has contents on all screen. I have seen many splash…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,062 questions
asked Sep 22, 2023, 6:15 PM
Haider Ali Faizi 100 Reputation points
commented Apr 11, 2025, 4:37 AM
Leo Wagner de Souza 696 Reputation points
0 answers

MQTT message published from MAUI app to AWS IOT is not showing in MQTT test client

I am using below code to publish message from app to AWS IOT: public async Task PublishMessage(string topic, string payload) { if (_mqttClient == null || !_mqttClient.IsConnected) { Utility.DebugAndLog("MQTT client is not connected.…

.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things: A concept that aims to extend the benefits of the regular internet, including constant connectivity, remote control ability, and data sharing, to goods in the physical world.
37 questions
asked Apr 10, 2025, 3:40 PM
Sreejith Sreenivasan 1,001 Reputation points
edited the question Apr 10, 2025, 9:26 PM
Rob Caplan - MSFT 5,642 Reputation points Microsoft Employee
1 answer

Line number and path or file name missing when logs maintain in azure applicationinsights for blazorWASM application

I had develop blazorWASM application logs using these links. I had used .NET core 6.0.I had use ILoggers<Type> logger…

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, 12:46 PM
ramesh P 0 Reputation points
commented Apr 10, 2025, 7:20 PM
Bruce (SqlWork.com) 73,966 Reputation points