11,445 questions with C#-related tags

Sort by: Updated
1 answer

How to correctly access IOCTL_USB_GET_NODE_CONNECTION_SUPERSPEEDPLUS_INFORMATION?

Hello, I am a developer working with IOCTL calls in Windows, and I am trying to understand the correct way to access IOCTL_USB_GET_NODE_CONNECTION_SUPERSPEEDPLUS_INFORMATION. Is there a difference between using kernel32.dll and kernelbase.dll when making…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-07T20:57:05.45+00:00
Loberbom, PninaX 0 Reputation points
answered 2025-05-08T10:50:35.54+00:00
Castorix31 89,061 Reputation points
0 answers

Authenticating to SharePoint Online with OAuth2, CSOM, and Service Accounts

Is it possible to authenticate to SharePoint Online using OAuth2 with delegated permissions and a service account, or is authentication only feasible with application permissions? To use delegated permissions, consent must be provided with the service…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-08T08:22:19.0333333+00:00
Andre Mulder 0 Reputation points
0 answers

How to proactively call PrintSupportExtensionSession.Print Device Capabilities Changed Event

as per the Print Support app guide (https://learn.microsoft.com/en-us/windows-hardware/drivers/devapps/print-support-app-v4-design-guide#software-endpoint-updating-the-printer-configuration) When this function is called it invokes the…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-08T03:36:00.44+00:00
Chau Dang Ba 40 Reputation points
0 answers

gRPC app and Semaphores

Hi, I have a Semaphore in gRPC server. The question is should this Semaphore be made volatile sense it can be accessed by various invocations of gRPC services?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-08T00:35:01.3933333+00:00
Mobile Application Developer (MAD) 20 Reputation points
1 answer One of the answers was accepted by the question author.

zip all files from Directory .Using ZipFile

Hi All, What I try to do; Zip all files in directory to the different location. but at the ending debug has error message. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2021-04-21T01:55:07.38+00:00
MiPakTeh 1,476 Reputation points
edited a comment 2025-05-07T23:53:12.9833333+00:00
Scott Thomas Nieman 0 Reputation points
0 answers

Unable to do module assessment of the Write Your First C# Code module

Link to the module: https://learn.microsoft.com/en-ca/training/modules/csharp-write-first Hello, last night I discovered the free course that Microsoft was providing and was trying to go through it. I made it all the way through the first module,…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-07T23:35:26.9866667+00:00
Karan Singh Buttar 0 Reputation points
0 answers

I've installed .net 8 desktop runtime, but my app gets error that it needs to b downloaded/installed

I've installed.net 8 desktop runtime. My c# winforms app displays an error stating that the desktop runtime needs to be downloaded & installed. A screenshot of my dotnet --info results are attached. Thanks in advance for any help.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-07T17:42:41.0733333+00:00
mike otwell 1 Reputation point
0 answers

module assessment questions are not showing

questions are not showing on the module assesment page This question is related to the following Learning Module

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-07T17:00:51.79+00:00
Aashish Morya 0 Reputation points
1 answer

Visual studio is freezing when I click on my pending changes which has 34000 + files in it, I want to undo pending changes / manage it. Kindly help

My visual studio is hanging when I click on Pending changes as I have to manage it. Please help I'm using TFS and Visual studio professional 2022.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-07T03:45:15.8833333+00:00
Sasirekha Karunamurthi 0 Reputation points
answered 2025-05-07T15:48:03.4233333+00:00
Bruce (SqlWork.com) 75,156 Reputation points
0 answers

Module Assessment Softlock

I can't finish my certification because the module assessment generates "no AI generated questions found for this module assessment in locale en-gb, branch undefined." and there is no button to finish the assessment, making my submission…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-07T02:36:59.2433333+00:00
Submariner 0 Reputation points
2 answers

stripe not working.NullReferenceExceptionObject reference not set to an instance of an object

Hi, Thanks for the help. However, My stripe is not loading. Any help. There is an error: Object not set to an instance of an object. Github Link:https://github.com/Thibaut501/Mango Awaiting your reply, Best Regards, Fabrice

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2024-11-18T05:47:17.8866667+00:00
Thibaut Fabrice 20 Reputation points
answered 2025-05-06T16:34:32.2733333+00:00
Thibaut Fabrice 20 Reputation points
0 answers

c# module not showing

The module for AI is not showing on the free C# Foundation course. This message is given, no AI generated questions found for this module assessment in locale en-gb, branch undefined.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-06T15:16:47.4766667+00:00
Alan B 0 Reputation points
0 answers

Time trigger function app

I was trying to run a In-process model Time Trigger function app, but when do test run it shows a 400 error, and no logs were visible. I tried using Postman Post request to trigger the application and it returned 400 Bad Request.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-06T10:32:09.3966667+00:00
M Prakash 0 Reputation points
commented 2025-05-06T12:55:09.84+00:00
AgaveJoe 30,036 Reputation points
1 answer One of the answers was accepted by the question author.

Issue with Install and configure Visual Studio Code for C# development

I have Visual Studio installed and up to date with .NET desktop development workload. When I go to extensions I cannot find C# Dev Kit nor any of the others listed in the tutorial. Are these no longer available and should I skip this lesson and move on…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-02-06T22:39:26.56+00:00
Mace Wilder 20 Reputation points
edited the question 2025-05-06T11:01:48.57+00:00
VarunTha 14,010 Reputation points Microsoft External Staff
0 answers

How to upload an Image using FTP in asp.net c#

I'm using the below code to upload an image via FTP concept and at the line of code using (Stream requestStream = request.GetRequestStream()) { requestStream.Write(fileData, 0, fileData.Length); } I'm…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-06T10:13:43.32+00:00
Ashok Kumar 221 Reputation points
edited the question 2025-05-06T10:14:36.9166667+00:00
Ashok Kumar 221 Reputation points
0 answers

Unable to cast transparent proxy to type 'SAP2000v19.COAPI'"

Hi everyone, I'm encountering an error in AutoCAD and I'm not sure what it means or how to fix it. I'm getting a pop-up window with the title 'AutoCAD' and the following message Ah, so it builds fine in Visual [Studio], but when used externally, it has…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-05T23:51:51.7833333+00:00
Binh94 Map 0 Reputation points
1 answer

A question regarding re-using objects vs creating/destroying after each use.

Consider this pseudo code: I would assume the first version is better since you only create the object once BUT one is also constantly overwriting the DateOnly value. So, which would be better? DateObject dateObject = new DateObject(); for (int i = 1; i…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-05T17:06:29.0866667+00:00
TNode 0 Reputation points
answered 2025-05-05T18:20:15.2+00:00
Bruce (SqlWork.com) 75,156 Reputation points
6 answers

Custom fonts not working when uploading Maui Android project to Play Store

I have added custom fonts in the font directory of my Maui project's Resources directory and updated the MauiProgram.cs file accordingly. The fonts work fine when I deploy the application using Visual Studio, but when I publish the app and upload it to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,096 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2024-05-21T16:58:13.6333333+00:00
Mujtaba Ali Panjwani 25 Reputation points
answered 2025-05-05T00:22:01.3966667+00:00
DB 1 Reputation point
0 answers

Remote shutdown not working

when i try to use remote shutdown (shutdown -i in cmd) it keeps on saying: (ip address):failed to connect to registry

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
asked 2025-05-04T17:35:44.8966667+00:00
Kabir Dautpure 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to run PowerShell with admin right

Hi, I need to run PowerShell with admin rights to get permission to run a script in C# code. If there is a solution please leave a comment, many thanks.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,445 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,932 questions
asked 2023-03-27T04:15:40.04+00:00
365 timviec 45 Reputation points
commented 2025-05-03T12:49:37.39+00:00
poa 0 Reputation points