Validate eol of each line of the text file
Hi, I used the way below to validate the eol of each line. How to ensure that I have the validation (by it) against each line of the text file?
Developer technologies | C#
How to build a Web-Service
How to build a Web-Service? I've got an old project of a Web-Service that does not compile anymore. What are the best practices now?
Developer technologies | C#
Can not make a Entity code-first migration at designtime
I would like to run add-migration at design-time on a simple C# application. Model: [Table("Feature")] public class Feature { public int Id { get; set; } public string? Priceclass { get; set; } public decimal…
Developer technologies | C#
Error accessing certificate private key after 2025-10 cumulative update
Hi. We have a Windows application developed on C# .NET Framework 4.5.2. Since the last cumulative update it's throwing an error every time we try to access the PrivateKey property of a X509Certificate2. X509Store store = new X509Store(StoreName.My,…
Developer technologies | C#
Access violation reading location 0xFFFFFFFFFFFFFFFF
Exception thrown at 0x00007FFEF47CF2D9 (clr.dll) in MasterInterfaceWpf.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF. The Common Language Runtime cannot stop at this exception. Common causes include: incorrect COM interop…
Developer technologies | C#
How to link microsoft account to freecodecamp.org account
I have been trying to link my Microsoft account to my freecodecamp.org account to enable me to participate in the Microsoft programming with C# certification. Kindly state the right steps to resolve this issue. Thanks
Developer technologies | C#
OIDC discovery metadata inconsistent across regions — PKCE field missing on build 2.1.22024.3
Since Oct 3 2025, our applications using Microsoft Entra ID (Azure AD) OpenID Connect have seen intermittent authentication failures. We discovered that different ESTS clusters behind…
Developer technologies | C#
Avoid SaveSigninToken property in the TokenValidationParameters
in OpenIdConnectAuthenticationOptions, Current I am setting the SaveSigninToken property in the TokenValidationParameters, But it might be a security risk, I don’t want to set SaveSignInToken as true, How can I avoid SaveSignInToken flag true. want to…
Developer technologies | C#
How to fix “Object reference not set to an instance of an object” in C#?
I'm working on a C# application using .NET 8, and I'm getting the following runtime error: System.NullReferenceException: Object reference not set to an instance of an object The error occurs when I try to access a property of an object that should have…
Developer technologies | C#
Custom SSO/Form based authentication for PowerBI Onpremise Report Server
We have a Unified Portal and that Portal has its own SSO authentication. That portal consist of many other portals within and now we are thinking about adding Analytics to the same. What we need is when a user logs in via SSO they can go to analytics and…
Developer technologies | C#
C# 'Microsoft.Reporting.WinForms.ReportViewer' Control Not Showing Print Preview on Windows 11
In a C# application built with .NET Framework 4.8 and running on Windows 11, an issue is being faced with the 'Microsoft.Reporting.WinForms.ReportViewer' control. Clicking the print button results in a print preview window that displays "No preview…
Developer technologies | C#
which learning path i can use it to learn web development?
Which learning path, I can use it to learn web development? Specially in C#, asp.net
Developer technologies | ASP.NET | Other
Developer technologies | C#
How to add a proper customxml to a powerpoint presentation
Hey guys, with the 1.7 version of the OfficeJS PowerPoint-API the support for customxmls has finally been introduced. If we now use the new method to add a customxml through OfficeJS and try to read it back afterwards everything works perfectly fine.…
Developer technologies | C#
How can I format and round the DateTime.Now to the nearest time on the pc time up or down ?
public void Test() { var datetime = DateTime.Now; var res = RoundUp(datetime, TimeSpan.FromMinutes(5)); } DateTime RoundUp(DateTime dt, TimeSpan d) { return new DateTime((dt.Ticks +…
Developer technologies | Windows Forms
Developer technologies | Windows Presentation Foundation
Developer technologies | C#
Fabric Semantic Model - Add member to Role through API
Hi all, I am trying to develop a C# integration with Microsoft Fabric to generate semantic models programmatically (https://learn.microsoft.com/en-us/rest/api/fabric/semanticmodel/items/create-semantic-model). So far, I was able to create the semantic…
Developer technologies | C#

Why can't Visual Studio create an Apple Developer certificate for my new computer with the Team API key
After providing Visual Studio the information for our Apple Developer Account information (Team API Key), my projects can't configure \ utilize Automatic Provisioning. I get an error: There was an error while trying to automatically provision the…
Developer technologies | C#
Call C++ function from C# desktop app
Hello! I have a C++ DLL which functions I need to call in a C# desktop WinForm application. Is there a guide on how to do this? For void Test1() void Test2(int x, double y) CString Test3() CString Test4(double x, double y) double…
Developer technologies | C#
C# create object instance with expression.new
I want to using expression to create object instance, at last i got an error. code bellow ` [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)] public class FieldAttribute : Attribute { private bool…
Developer technologies | C#

Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass'
Hi I've this C# application which opens excel file and updated another excel file. The application developed in Visual studio 2005 and Office 2016. I've recently uninstalled Office 2016 and installed Office 365. Since then " Unable to cast…
Developer technologies | C#
Editor Config file for .Net Framework 4.8 project
Hi, I'm planning to implement "Editor Config" file in my ".Net Framework 4.8" C# project. I have to assign some custom rule set to follow proper coding guidelines in it. Could you please provide me any sample project for this. It will…