9,981 questions with C#-related tags

Sort by: Updated
1 answer

C# How to send UDP packets between 2 computer with dedicated NICs (no router)

I have 2 computers connected via built in NICs to a router connected to the web. Each computer has a second dedicated NIC on a different sub-net - connected directly to each other (no router). Device A (Sender)  IPv4 Address. . . . . . . . . . . :…

C#
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.
9,981 questions
asked 2024-02-18T22:58:01.7133333+00:00
Steve Cobb 0 Reputation points
commented 2024-03-02T19:11:49.99+00:00
Steve Cobb 0 Reputation points
1 answer

How to generate the access Token to access the Proxy Application using AcquireTokenSilent method.

How to generate the access Token to access the Proxy Application using AcquireTokenSilent method. I have used the AcquireTokenSilent method but the method returns null result. Below is the code snippet **var scopes = new string[] { todoListResourceId +…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,013 questions
C#
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.
9,981 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,715 questions
asked 2024-03-01T06:28:03.2433333+00:00
Deshmukh, Ashish 1 Reputation point
answered 2024-03-02T16:06:58.98+00:00
Bruce (SqlWork.com) 52,826 Reputation points
1 answer

Split string, create group 1 to n relationship, possiblities

Hello, I have an input of string and need to derive a list, dictionary from it. What is the best and easiest way to do this? Maybe split or better RegEx? /// Input //…

C#
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.
9,981 questions
asked 2024-03-01T17:59:42.71+00:00
Markus Freitag 3,746 Reputation points
edited a comment 2024-03-02T15:36:18.76+00:00
Markus Freitag 3,746 Reputation points
1 answer

How can i get a certificate. Tell full details

How to get certificate. Show some tutorials .

C#
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.
9,981 questions
asked 2024-03-02T09:39:32.8133333+00:00
Zeemal Nabeel 0 Reputation points
answered 2024-03-02T12:30:21.03+00:00
Marcin Policht 1,300 Reputation points MVP
0 answers

How to Read equations from word document in asp.net

I have a Table Inside Word and I am fetching the equation from the word but it is considering equation as texts. private string ExtractContentWithImages(WordprocessingDocument doc, DocumentFormat.OpenXml.Wordprocessing.TableCell cell) { …

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
599 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,186 questions
C#
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.
9,981 questions
asked 2024-03-02T12:27:04.5333333+00:00
Vishakh Shetty 0 Reputation points
1 answer

How do we send custom headers in Azure Email Service while sending a mail via C# code?

I would like to send custom headers via mail to ACS (we're looking for feature parity with mailgun). Eventually I would like to know if a user clicked on a mail, which environment it was from (prod or staging), was it sent as a marketing campaign or not…

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
632 questions
C#
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.
9,981 questions
asked 2024-02-29T09:49:50.17+00:00
Nanda, Karan 0 Reputation points
edited an answer 2024-03-02T12:00:52.7733333+00:00
Sedat SALMAN 12,505 Reputation points
1 answer

How to store data from Excel to database?

How to store data from Excel to database in EF C# windows form Application?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,805 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,192 questions
C#
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.
9,981 questions
asked 2024-03-02T07:36:41.3933333+00:00
Majeed Purseyedmahdi 41 Reputation points
answered 2024-03-02T10:12:44.7066667+00:00
Karen Payne MVP 35,016 Reputation points
0 answers

Extracting real-time data from API to SQL Server database using SSIS

I'm new to SSIS and trying to extract real-time data from an API into an SQL Server database for ETL processing. While I have written C# code that fetches data, it saves it to a JSON file. However, the API has over 20 different routes to access each…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,314 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,417 questions
C#
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.
9,981 questions
asked 2024-03-01T11:36:48.6533333+00:00
rania mbarki 0 Reputation points
commented 2024-03-02T01:18:37.9166667+00:00
Greg Low 600 Reputation points Microsoft Regional Director
1 answer

MSAL - For generating the token

Hello Microsoft Community, I am currently facing an issue with the Microsoft Authentication Library (MSAL) in my .NET application. I have recently migrated from the ADAL library to MSAL, as ADAL has been deprecated. I am using the…

C#
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.
9,981 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,715 questions
asked 2024-02-29T11:46:41.8+00:00
Pankaj Thakur 0 Reputation points
answered 2024-03-01T20:42:11.7166667+00:00
James Hamil 20,816 Reputation points Microsoft Employee
0 answers

Need help with Graphics.DrawString font size for printer output

I have a Windows desktop application that creates labels to print to a laser printer.  I am using Visual Studio v17.8.6 and the template is .NET Framework. I am new to using graphics and unsure what is the best solution to use to print to the laser…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,805 questions
C#
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.
9,981 questions
asked 2024-03-01T19:21:59.1166667+00:00
Pat Hanks 40 Reputation points
commented 2024-03-01T20:37:47.99+00:00
Pat Hanks 40 Reputation points
0 answers

NET8.0 MAUI - MediaElement - Error when trying to stream Audio files stored on AWS S3

Hi I am using MediaElement to Play audio files stored on AWS S3 buckets, using streaming. Everything is correctly setup and I am populating the MediaElement Source property with the url of the Audio file stored in my S3 bucket. I get the following…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,617 questions
C#
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.
9,981 questions
asked 2024-02-27T20:43:12.21+00:00
Riffy 271 Reputation points
edited a comment 2024-03-01T20:15:05.52+00:00
Riffy 271 Reputation points
0 answers

Visual Studio Update - Broken IL Stripping in Release Builld. NetMaui iOS

I have a Net Maui Blazor Hybrid app running Net7 compiled for both Android and iOS. This is a seasoned project that has always built and published with no issues. Its always been located in the same directory and none of the dependant libraries have…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,324 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,440 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,617 questions
C#
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.
9,981 questions
asked 2024-02-29T19:06:34.31+00:00
Glenn Stretton 0 Reputation points
edited the question 2024-03-01T18:59:03.0166667+00:00
Glenn Stretton 0 Reputation points
1 answer

A transport-level error has occurred when receiving results from the SQL server

I am trying to execute a simple query against a SQL server database in my C# application. I have tried using the System.Data.SqlClient driver and the latest Microsoft.Data.SqlClient and get the same error. Query: Select * From person there are only…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,314 questions
C#
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.
9,981 questions
asked 2024-02-29T20:10:29.8566667+00:00
Lee Taylor 26 Reputation points
edited an answer 2024-03-01T17:13:55.44+00:00
Lee Taylor 26 Reputation points
0 answers

Get Extended Events Data for Azure Managed Instance MFA with C# code

Hi, We are working with Extended Events. We have utilized QueryableXEventData Class for SQL Server 2016,2019 versions. But now we also wanted to retrieve the data for Azure SQL Managed Instance with Multifactor authentication…

Azure SQL Database
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,192 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,314 questions
C#
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.
9,981 questions
asked 2024-02-29T16:55:11.4333333+00:00
Deepak Rane (drane) 40 Reputation points
commented 2024-03-01T17:05:58.2866667+00:00
Oury Ba-MSFT 15,196 Reputation points Microsoft Employee
0 answers

Create QR code image of same size

Hi, I have qr code data of different size & qr code versions are also different respective of data size. Is it possible to print/create all QR code image of same size(height & width)? I tried setting height & width in encoding options but…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,192 questions
C#
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.
9,981 questions
asked 2024-03-01T13:41:45.8566667+00:00
Yugank Narula 0 Reputation points
1 answer One of the answers was accepted by the question author.

Affected .net versions by CVE-2024-0057

Hello, I am concerned about CVE-2024-0057 and would like to know if .NET Core is affected. I have checked the security advisory here and can see that all supported versions of .NET (.NET 6 through .NET 8) are impacted. However, I am specifically…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,192 questions
C#
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.
9,981 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,101 questions
asked 2024-02-23T10:58:23.21+00:00
Matěj Prášek 20 Reputation points
accepted 2024-03-01T10:15:36.71+00:00
Matěj Prášek 20 Reputation points
0 answers

Windows App: ProximityDevice NFC events not triggered / NFC doesn't work at all

was first posted as issue here: https://github.com/microsoft/microsoft-ui-xaml/issues/9358 Describe the bug We have an app that we migrated from UWP to WinUI 3 a while ago. Unfortunately, we discovered that with the WinUI 3 app the ProximityDevice NFC…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
698 questions
C#
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.
9,981 questions
asked 2024-02-29T18:39:22.2433333+00:00
Nico K 0 Reputation points
commented 2024-03-01T08:59:19.73+00:00
Jeanine Zhang-MSFT 8,431 Reputation points Microsoft Vendor
1 answer

Storage Permission is not working in Android 13..Below Android 13 it is working fine

In Xamarin forms Android targeting 13 ,unable to get storage permission .Below Android 13 it is working fine. In android 13 it was not showing storage permission in Settings permission list also. Can anyone please help me And I am giving permissions in…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,261 questions
C#
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.
9,981 questions
asked 2024-02-29T08:37:24.91+00:00
Sk 21 Reputation points
commented 2024-03-01T06:39:42.49+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,576 Reputation points Microsoft Vendor
1 answer

What causes error "Can't resolve types until ITypeIdentityResolutionService has started processing enqueued assemblies."

What causes error "Can't resolve types until ITypeIdentityResolutionService has started processing enqueued assemblies." I am using VS2022 version 17.8.0. I have async loading of solution enabled. I do not use a special winforms designer, it is…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,440 questions
C#
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.
9,981 questions
asked 2024-02-29T13:20:35.05+00:00
Michael Heider - SKIDATA 0 Reputation points
commented 2024-03-01T06:37:57.3533333+00:00
Tianyu Sun-MSFT 25,546 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Match a regular expression

Im trying to get the regex expression that will match 15 characters excluding an optional hyphen. so that means the string could be 15 characters including a hyphen.

C#
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.
9,981 questions
asked 2024-02-22T14:57:27.35+00:00
George Bush 20 Reputation points
commented 2024-03-01T04:31:38.5333333+00:00
Jiale Xue - MSFT 18,741 Reputation points Microsoft Vendor