Issue to scan the file
Hi, It is not scanning all of the lines of the file using the codes below on VS 2026. Anything wrong? try { string[] fileEntries = Directory.GetFiles(directoryPath); foreach (string fileName in fileEntries) …
Developer technologies | C#
About a rare issue in a WPF‑based login screen where the Enter key appears to be continuously pressed
I am creating a login screen for an application using WPF. The login screen contains text boxes for entering a login ID and password. When the Enter key is pressed while there is input in either the login ID or password text box, the login button is…
Developer technologies | C#
CollectionView display messages backwards
I'm trying to create a replicate of WhatsApp in .NET 10 MAUI. I have the list of messages: the newest one at the bottom of the list and the old at the top. For this implementation, I use a…
Developer technologies | C#
How do I get the bins from a purchase order line item from the Business Central APIs?
I have a C# app that calls Business Central APIs. I can use https://api.businesscentral.dynamics.com/v2.0/{{tenantId}}/Sandbox/api/v2.0/companies({{company_id}})/purchaseOrders({{PO}})/purchaseOrderLines?$expand=location to get more data about the…
Developer technologies | C#
Flex Consumption Option Set binding not working
In this instance its causing issues where our Service Bus Triggers are no longer being hit. Removing the __ reference and referencing an app setting that does not have a prefix works fine. [Function(nameof(ProcessInputtedMessage))] public async…
Developer technologies | C#
Visual Studio 2022 Git: Cannot fetch from remote repository (Git Bash works fine), How to fix this?
I am experiencing an issue where Visual Studio 2022 cannot fetch from a Git remote repository, but Git Bash works correctly using the same repository and credentials. Visual Studio shows: Failed to fetch from the remote repository. See the Output window…
Developer technologies | C#
Issue to show the error
Hi, For the code like the project below https://1drv.ms/u/c/17ec75244bac022f/IQDe24zzJVnTS65tU-RbGuKoAaMtx1mPtvJWgmXlcYO-HdE?e=8NpGwO is not able to show the error for this file. Any…
Developer technologies | C#
How to generate PDF with Multilevel list with hierarchical numbering in C# application
Hi, I am new to C#, I am creating a small application, and I need to generate some PDF reports from C# application programmatically. Most of the reports will be Word-like multilevel lists with hierarchical numbering (these numbers have to be calculated…
Developer technologies | .NET | Other
Developer technologies | ASP.NET | Other
Developer technologies | C#
Recommend a free PDF developer's library for C#
I'm using VS 2017 CE, C#, and WinForms on a non-commercial application that adds and deletes pages from PDFs. The added pages are created with minimal text and no drawing or graphics. I've been using iText7, and it's great, but it has far more power…
Developer technologies | Windows Forms
Developer technologies | C#
Can anyone recomend the easiest tool to generate pdfs in c#?
I am trying to generate a PDF from C# Library for my project. Any tools you guys can suggest would be great, either Free or Paid. I am open to any options. Thank you!
Developer technologies | C#
GisConverter -ORG Format Double Conversion
Current: We used GIS Converter to our "CDR" system, which detects viruses. We have already implemented the ORG Format . ORG Format - convert from the source format to itself. Problem: When we convert from source format to target format and…
Developer technologies | C#
Cannot view forms in design mode after rebuilding the project
ERROR: Designer load encountered an error. Please ensure that the project can be built successfully. Tried ---> Built , Clean, rebuild Result -> Still cannot view the form in design mode. Plus, already rebuilt this prokect today ... #annoyed ! …
Developer technologies | C#
Refused to apply style from <URL> because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled
HI Team, I'm trying to to bundling CSS files after minification. My application is ASP.net Core 4.5 not MVC. I have created bungleconfig class file and written below code public class bundleconfig { // For more information on bundling, visit…
Developer technologies | ASP.NET | Other
Developer technologies | C#
LINQ returns System.Data.SqlTypes.SqlNullValueException. Why?
I'm learning LINQ, and trying to fetch data from a SQL Server database. All I'm trying to do is fetch data from one datetime field that is defined as nullable, where I know the field value is set to null. Here's my statement: var query = from cm in…
Developer technologies | C#
Why am I getting System.Data.SqlTypes.SqlNullValueException?
I have a model (this code is greatly reduced): public class myClass { public DateTime? MyDate {get; set;} } and I have a database table with: create table myTable (somedate datetime null); insert into myTable select null; and I have a linq…
Developer technologies | C#
StoreContext.GetAppLicenseAsync() returns false for active subscription in MSIX CLI
I'm building a WinRT CLI wrapper in C# that checks if a user owns an active Microsoft Store subscription add-on. This CLI is called from an Electron + React.js app using command-line arguments and returns true or false depending on the license…
Developer technologies | C#
GetDirectoryName('')" cannot be evaluated. The path is not of a legal form.
Good day, trying to compile my Windows Forms app - getting the error in the subject field... Thx
Developer technologies | C#
How to secure both Blazer server and api ?
Hello, I need an advice. I'd like to secure a blazor server app with individual user account. This functionality is embedded with the basic setup, and use cookies. But I also need to protect my web api with the same way. I know about the JWT, but I…
Developer technologies | C#
C# Winforms control.Width not reflecting FontStyle change from Regular to Bold at runtime
I am (trying to) use control.Width at runtime to calculate control spacing . To test I've got this code: `public static Font Std_9_R { get; } = new Font( "Segoe UI", 9, FontStyle.Regular );` ```` public static Font Std_9_B { get; }…
Developer technologies | C#
VS2022 c# File.Copy weird behaviour after upgrade to Office 365
We have a small windows desktop app (.NET 4.8) that creates a copy of some data it grabs from and ODBC connection and stores it in an MS Access database which in connects to via oledb. This has been working perfectly well for a long time. We have a…