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#
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#
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#
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#
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#
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#
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#
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#
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#
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#
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# 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#
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#
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
C#
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#
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#
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#
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
C#
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#
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.