11,643 questions with Developer technologies | C# tags

Sort by: Updated
5 answers

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#
Developer technologies | 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,643 questions
asked 2025-10-08T09:45:21.36+00:00
Peter_1985 2,806 Reputation points
commented 2025-10-23T02:47:08.04+00:00
Peter_1985 2,806 Reputation points
1 answer

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#
Developer technologies | 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,643 questions
asked 2025-10-02T06:15:08.81+00:00
Riesebos, WJ 0 Reputation points
answered 2025-10-22T13:01:40.73+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 800 Reputation points Microsoft External Staff
2 answers

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#
Developer technologies | 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,643 questions
asked 2025-10-16T20:58:51.3033333+00:00
Jørgen Vig Jensen 0 Reputation points
answered 2025-10-22T11:15:45.69+00:00
Varsha Dundigalla(INFOSYS LIMITED) 2,535 Reputation points Microsoft External Staff
3 answers

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#
Developer technologies | 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,643 questions
asked 2025-10-17T10:14:17.9+00:00
Miguel Ángel Martínez Durán 10 Reputation points
commented 2025-10-22T10:26:20.94+00:00
Varsha Dundigalla(INFOSYS LIMITED) 2,535 Reputation points Microsoft External Staff
2 answers

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#
Developer technologies | 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,643 questions
asked 2025-10-21T12:47:07.4433333+00:00
Ievoli Vincenzo 0 Reputation points
answered 2025-10-22T09:22:16.7733333+00:00
Gade Harika (INFOSYS LIMITED) 1,185 Reputation points Microsoft External Staff
1 answer

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#
Developer technologies | 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,643 questions
asked 2025-10-22T04:42:12.04+00:00
Tolulope Isreal 0 Reputation points
answered 2025-10-22T07:34:52.3733333+00:00
Susmitha T (INFOSYS LIMITED) 755 Reputation points Microsoft External Staff
1 answer

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#
Developer technologies | 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,643 questions
asked 2025-10-05T20:07:43.8266667+00:00
Henrik Lagerstam 15 Reputation points
commented 2025-10-21T12:49:33.1333333+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 800 Reputation points Microsoft External Staff
1 answer

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#
Developer technologies | 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,643 questions
asked 2025-10-13T05:52:48.5066667+00:00
Amit Mundra (Tata Consultancy Services Limi) 0 Reputation points Microsoft External Staff
commented 2025-10-21T12:46:54.2933333+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 800 Reputation points Microsoft External Staff
2 answers

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#
Developer technologies | 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,643 questions
asked 2025-10-15T09:04:07.6766667+00:00
toadf nhyt 0 Reputation points
commented 2025-10-21T12:13:51.5866667+00:00
Varsha Dundigalla(INFOSYS LIMITED) 2,535 Reputation points Microsoft External Staff
1 answer

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#
Developer technologies | 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,643 questions
asked 2025-10-10T09:35:42.12+00:00
Vishal Singh 0 Reputation points
commented 2025-10-21T04:44:05.8166667+00:00
Susmitha T (INFOSYS LIMITED) 755 Reputation points Microsoft External Staff
1 answer

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#
Developer technologies | 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,643 questions
asked 2025-09-29T19:29:36.59+00:00
Wright, Alyssa 0 Reputation points
commented 2025-10-21T04:36:56.63+00:00
Susmitha T (INFOSYS LIMITED) 755 Reputation points Microsoft External Staff
4 answers One of the answers was accepted by the question author.

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 | ASP.NET | Other
A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
3,619 questions
Developer technologies | C#
Developer technologies | 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,643 questions
asked 2023-10-16T16:11:39.6766667+00:00
Ahmed Awad Elbanna 20 Reputation points
answered 2025-10-20T12:16:20.82+00:00
oliviabloom 0 Reputation points
1 answer One of the answers was accepted by the question author.

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#
Developer technologies | 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,643 questions
asked 2025-10-16T11:56:37.6266667+00:00
Marquito 20 Reputation points
accepted 2025-10-20T11:56:13.49+00:00
Marquito 20 Reputation points
3 answers One of the answers was accepted by the question author.

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#
Developer technologies | 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,643 questions
asked 2021-10-14T13:43:45.593+00:00
sharon glipman 441 Reputation points
answered 2025-10-17T05:36:34.73+00:00
bruce 0 Reputation points
2 answers

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#
Developer technologies | 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,643 questions
asked 2025-10-03T20:36:00.5133333+00:00
Perez Lemme, Ignacio 0 Reputation points
commented 2025-10-16T09:46:07.1766667+00:00
Adiba Khan 895 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

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#
Developer technologies | 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,643 questions
asked 2025-10-14T17:17:13.89+00:00
Patrick Greenwald 20 Reputation points
accepted 2025-10-15T20:17:59.5933333+00:00
Patrick Greenwald 20 Reputation points
1 answer One of the answers was accepted by the question author.

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#
Developer technologies | 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,643 questions
asked 2025-10-14T14:26:30.67+00:00
Noah Aas 1,110 Reputation points
commented 2025-10-15T19:09:48.78+00:00
Viorel 124.9K Reputation points
1 answer

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#
Developer technologies | 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,643 questions
asked 2024-10-05T07:22:53.52+00:00
金利 张 25 Reputation points
edited an answer 2025-10-15T15:46:24.7266667+00:00
8 answers

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#
Developer technologies | 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,643 questions
asked 2021-02-04T07:21:21.033+00:00
Venkata Ramana Nori 36 Reputation points
commented 2025-10-15T10:00:17.98+00:00
Zakaria Mostafa 0 Reputation points
2 answers

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…

Developer technologies | C#
Developer technologies | 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,643 questions
asked 2025-09-29T07:01:57.9833333+00:00
Pushpala, Thejesh 0 Reputation points
commented 2025-10-15T03:44:04.08+00:00
Varsha Dundigalla(INFOSYS LIMITED) 2,535 Reputation points Microsoft External Staff