Process ID is 0 in the Event Viewer
Hello All, We have a WPF application built on .Net Framework 4.8. This application writes certain logs into the Event Viewer under the path 'Windows Logs/ Application'. Currently, the logs are written into the 'Event Viewer', but the process id is…
Build automation - Deployment Center - failing System.Text.Json 8.0.0.4 - Including fix C# ASP.NET
I have getting an error with my latest build using DotNet 8.0 when using the "Deployment Center" on Azure which is connected to my git repo. I couldn't find a fix specifically online so I dug deeper and through trail and error I've come to this…
Multiple emails validation with split comma in a Textbox
Hi, If I have a TetxtBox that will be used to send messages to multiple emails, how can I validate these emails that will be inputted in the textbox? The emails are separated by comma. e.g. myfirstmail@hotmail.com, mymail@outlook.com,…
Cannot find dotnet path to dotnet
Hello. I'm trying to set up my C# environment, and run a program. I'm using VSC, with C# and C# DevKit extensions. I tried up to change version of extension to the older version and pin up solution explorer but it brought no result. The output says that…
How do I localize the AppDescription of Desktop Bridge apps?
I have a UWP application. The project contains the following files: de-DE\Resources.resw en-US\Resources.resw Each file contains a text with the key AppDescription. en-US is set as the default language in Package.appxmanifest. When submitting to the…
Error Debugging in Visual Studio Code: 'ConnectionLostException' when attempting to run C# code
Visual Studio Code Version: 1.79 Operating System: Windows 11 Pro, 64-bit Problem Description: When attempting to debug C# code in Visual Studio Code, the following error message appears: "Your changes cannot be applied due to an unexpected…
Function App Blob Trigger not working after migrating to isolated model
After migrating my function app from in process (.NET 6) to isolated (.NET 8), I am encountering a runtime error related to the blob binding. I have migrated multiple function apps already, but for this one I am encountering a runtime exception on the…
How to search for a file by file name
What is the correct syntax to search for a file using a file name for the below call? GraphClient.Drives[_Drive.Id].SearchWithQ("q").GetAsSearchWithQGetResponseAsync(); I cannot find any documentation on how to do this. Thanks for your help
ASP.NET Gridview Header column not freezing properly
I'm using gridview with freezing header in ASP.NET application. But, freezing is not showing while running the application. what is the issue in the below code...? <%@ Page Language="C#" AutoEventWireup="true"…
How to Use system management c# to check application launch
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Management; using…
No client certificate prompt on browser
Hello All, We have a HTTPs Server application built using HTTPsListener class using the .Net Framework 4.8. This server supports mutual authentication. We are using the code attached in the question HttpsListener_Code.txt. But we are facing an issue when…
Windows.Data.Pdf.PdfDocument Crash with file size greater than 2GB
Same issue as here (no replies there, it's an old thread) https://learn.microsoft.com/en-us/answers/questions/248422/windows-data-pdf-pdfdocument-crash My notes: Crash is not catchable which makes it really hard to find reason for issue or…
how to extract text from pdf?
Hi every body I have this kind of pdf. it was exported from dwg.I can read dwg and extract text from it . today I need to read this pdf and extract text from it but I can't. i have used many library like itext7 but it didn't works. is there any way to…
How to get pixel correctly, when Windows Magnifier is on?
Hi, I would like to know, if there's some way to get correctly pixel color, which is pointed by cursor, when Windows Magnifier is on? This is code sample, which works perfectly whether magnifier is off: public static Color GetColorAtPosition(int x, int…
Validate file type and metadata in Sharepoint Online while uploading
Please can someone advise of the best way to pre-validate a file that is being uploaded to a Modern SharePoint Online site : To check that the filetype is an approved type in a whitelist ( eg pdf , doc or xls ), To check there is no password (or…
struggeling with simple Serial to USB code sniplet error #4294967295
Beeing rather new to C# and Visual Studio I yesterday downloaded the VS community version to learn how to possibly establish a serial communication to my Arduino. (So hopefully my request doesn't sound too silly. ( Before that I was struggeling with…
System.NullReferenceException: 'Object reference not set to an instance of an object.' when navigating to page in WinUI
I am working with a WinUI project which is built based on the MVVM Toolkit template. When I use NavigationService.NavigateTo(typeof(EmployeeViewModel).FullName!); to navigate to EmployeePage, the program crashes with the bug that…
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
how do I export C# datatable to Excel 365
I have been using the following code to export a dataTable to Excel. I now have users that have upgraded to Microsoft 365 and this no longer works. My research to make the export work to Excel 365 is not panning out. any help would be grateful public…
Only a compilation unit can have top-level units. Error
Only a compilation unit can have top-level units. I couldn't find what caused this error. I don't know what this error means and if there is a solution. Can you help me? I am using Visual Studio Code with .NET9.0 version and C# coding language.