10,858 questions with C#-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

how to highlight searched text in DataGrid Cells on WinUI 3 application. Or how to use RichTextBlock in the Datagrid cell?

how to highlight searched text in DataGrid Cells on WinUI 3 application. Or how to use RichTextBlock in the Datagrid cell? I'm writing a C# WinUI 3 Desktop App with DataGrid. And I want to use rich text in the DataGird cell to highlight the searched…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,500 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,332 questions
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.
780 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.
10,858 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
asked 2024-09-10T14:50:55.9+00:00
EdgeMac 20 Reputation points
commented 2024-09-11T08:52:53.2466667+00:00
EdgeMac 20 Reputation points
2 answers One of the answers was accepted by the question author.

Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException: 'The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.'

Hi I am working with retrieving data from a SP list. I am able to connect to the list, get the list name and count the number of records (items) from the given list. Next, I wanted to get the data from a particular columns. Say I have the following…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 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.
10,858 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,948 questions
asked 2024-08-15T08:49:02.92+00:00
Lakshmanan B 81 Reputation points
edited the question 2024-09-11T08:18:21.8466667+00:00
RaytheonXie_MSFT 35,066 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Is it possible to read/store/retrieve data from Excel spreadsheet from Share point site to WPF application?

Hi, I have connected to Share Point site referring the following blog: https://www.c-sharpcorner.com/article/sharepoint-csom-for-net-standard/ I have created a sample test spreadsheet in the Documents Library named *testSpreadSheet.xlsx * I have a…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,842 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.
10,858 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,948 questions
asked 2024-08-20T15:12:24.4533333+00:00
Lakshmanan B 81 Reputation points
edited the question 2024-09-11T08:16:20.7366667+00:00
RaytheonXie_MSFT 35,066 Reputation points Microsoft Vendor
1 answer

How to Write/Store data in an Excel spreadsheet that is located at Share Point?

I am working on writing or storing the data into Excel spreadsheet that is located at a Share Point site. I am able to connect to the Share Point site and obtaining the excel spreadsheet by passing the relative URL. Using Memory Stream, the contents of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,842 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.
10,858 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,948 questions
asked 2024-08-28T10:42:09.1+00:00
Lakshmanan B 81 Reputation points
edited the question 2024-09-11T08:11:37.5066667+00:00
RaytheonXie_MSFT 35,066 Reputation points Microsoft Vendor
1 answer

How can I upload x86 and x64 directories to github?

HelloBa I uploaded my project to github. However, I created a Lib folder in the directory where the project file is located. There are x86 and x64 folders in it. This directory is not uploaded to the repository. How can I include this directory and its…

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.
10,858 questions
GitHub Training
GitHub Training
GitHub: A web-based hosting service for software development and version control using Git. Acquired by Microsoft in 2018.Training: Instruction to develop new skills.
43 questions
asked 2024-08-26T16:46:05.5266667+00:00
fatih uyanık 80 Reputation points
commented 2024-09-11T07:15:55.71+00:00
fatih uyanık 80 Reputation points
1 answer

C# App doesn't start up when running Appium WDA on iOS

We are using Appium to test our multi-platform app. (Windows, Android, iOS). This App is written using C# in .Net 8 with MVVMCross. However, since about month or 2 ago, our App crashes on start up on iOS when the Appium xcuitest WebDriverAgent is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 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.
10,858 questions
asked 2024-09-10T12:05:51.0566667+00:00
Joost Jens 0 Reputation points
commented 2024-09-11T06:46:22.02+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,746 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

.Net MAUI Binding for ListView ItemSelected

Hi all, I am trying to bind the ItemSelected of a ListView to a View Model, but am experiencing some issues (due to my own misunderstands around how it all works). I have view: <?xml version="1.0" encoding="utf-8" ?>…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 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.
10,858 questions
asked 2022-12-30T18:55:05.027+00:00
Gavin Beard 21 Reputation points
answered 2024-09-10T09:50:35.2+00:00
Cliff Choongo 0 Reputation points
1 answer One of the answers was accepted by the question author.

multiple headers to the GET request

How can I pass multiple headers to the GET request. below is my code. the response code is always BadReqest. Not sure what am I doing wrong.. var parameters = new PayParam { token = "12345" }; var json =…

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.
10,858 questions
asked 2024-09-06T05:42:45.45+00:00
Anjali Agarwal 1,426 Reputation points
accepted 2024-09-10T04:32:24.43+00:00
Anjali Agarwal 1,426 Reputation points
1 answer

Using Graph API to Send Messages in a "One-to-One" Teams Chat from an ASP .Net Core Application

Hello Microsoft Team, I have the following goal: We want to send a message in a "One-to-One" Teams chat from an ASP .Net Core application. For this, we intended to use the Graph API and have created the following example based on the…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,980 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 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.
10,858 questions
asked 2024-08-12T05:38:04.7166667+00:00
Carsten Cors 0 Reputation points
commented 2024-09-10T02:36:16.41+00:00
CarlZhao-MSFT 41,291 Reputation points
1 answer

Azure Cognitive Speech Services Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED

I'm having an issue to connect to the Azure Speech Services custom domain using Entra Id. When I create a SpeechConfig using Domain and Subscription key, everything is working fine, but when I try to use Aad token, the the connection fails. This is my…

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,684 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.
10,858 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,945 questions
asked 2024-08-16T09:58:32.0833333+00:00
Milosz Wieczorek 0 Reputation points
edited an answer 2024-09-09T08:40:37.2233333+00:00
Milosz Wieczorek 0 Reputation points
2 answers

How to fix Signature validation failed when trying to validate an access token of Microsoft Entra ID

Hi, I'm trying to validate my access token signature from Microsoft Entra ID, as you can see in the below image, the "kid" attribute is different from the keys retrieved in the second image below that were retrieved from…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 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.
10,858 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,449 questions
asked 2024-06-07T20:44:34.87+00:00
Bernardo Garza García 5 Reputation points
answered 2024-09-09T08:29:08.12+00:00
Linus Lim Duann Shiun 0 Reputation points
1 answer

Windows 11 22H2 has a different way of using the JS engine?

Dear support, Our company has a solution built on a WebBrowser that will use the JS engine. After upgrading to Windows 11 22H2, we found that the solution behaves differently from before. We did some research, and then found that Windows 11 22H2 has…

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.
10,858 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,693 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
asked 2022-11-02T01:24:42.513+00:00
Julie Jiang 1 Reputation point
edited a comment 2024-09-07T14:23:06.36+00:00
Philippe Majerus 0 Reputation points
1 answer One of the answers was accepted by the question author.

Issue to CR LF

Hi, The code of https://1drv.ms/u/c/17ec75244bac022f/EZcvtsmnIspDlnN2vUdJhG4BDB_nZL8TMIq-BNKi6_akyA?e=lPX5bY is not fine to detect that it is missing CR LF on the last line of…

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.
10,858 questions
asked 2024-09-05T04:37:00.5+00:00
Peter_1985 2,666 Reputation points
edited a comment 2024-09-07T08:11:28.3466667+00:00
Peter_1985 2,666 Reputation points
1 answer

How to Automatically Renew Microsoft Azure AD Refresh_Token in a Chrome Extension Without User Interaction or Configuration Changes?

I am using a Chrome extension for authentication with Microsoft Azure AD via the PKCE flow. The refresh token has a 24-hour lifetime. Is there a way to renew the refresh token automatically, without user interaction and without modifying Azure AD…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,457 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.
10,858 questions
asked 2024-09-06T13:28:14.7833333+00:00
HOUMADA Oussama 0 Reputation points
answered 2024-09-06T15:49:46.6566667+00:00
Bruce (SqlWork.com) 64,486 Reputation points
1 answer

DateTime.ParseExact returns today if date string and format are set to "General"

During troubleshooting, I came across this weird behaviour which occurs when parsing text to create a DateTime object in C# (in .Net Core 8.0). Can anybody explain why the following statements return today's date when I would have expected them to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 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.
10,858 questions
asked 2024-09-06T11:47:07.03+00:00
Shola Ogunde 0 Reputation points
answered 2024-09-06T12:52:55.25+00:00
Jiachen Li-MSFT 31,011 Reputation points Microsoft Vendor
2 answers

No se puede reconocer la cadena como valor DateTime válido

Buen día. Tengo una aplicación web, desplegada en el IIS de un servidor que está en la nube. Constantemente me sale un error de manera intermitente que indica "No se puede reconocer la cadena como valor DateTime válido" , luego de un rato la…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,690 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,957 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.
10,858 questions
asked 2024-09-05T22:21:18.4966667+00:00
answered 2024-09-06T02:36:06.1566667+00:00
Michael Taylor 53,971 Reputation points
1 answer

Burn the files on CD with the full directory tree structure.

The application built on C# Winforms, Framework 4.6.2 and there is the need to burn all the files and folders from the root folder, including itself to CD. The entry parameter is the source root folder path. The folder contains inside all of the needed…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,884 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.
10,858 questions
asked 2024-08-22T11:26:40.8333333+00:00
Dani_S 3,746 Reputation points
commented 2024-09-05T18:31:57.4066667+00:00
Bruce (SqlWork.com) 64,486 Reputation points
1 answer

How to troubleshoot the exception, Could not create TLS secure channel?

Hello there, I have this C# code that consumes a SOAP WS and it was working properly for years. However, since recently it started to throw the following exception: The request was aborted: Could not create SSL/TLS secure channel. Basically it imports…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,459 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.
10,858 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
331 questions
asked 2024-07-12T14:24:34.8133333+00:00
Kuler Master 266 Reputation points
answered 2024-09-05T16:48:06.3966667+00:00
Bruce (SqlWork.com) 64,486 Reputation points
0 answers

Connect to Fabric SQL Endpoint from Azure APP Service WebJob in C#

How can we connect to a Fabric SQL endpoint using a C# console app published as a webjob? We are using ADO.NET to access SQL endpoints, but we get the following error: "A server name like tcp:xxxxxxxxxxxxxxx.datawarehouse.fabric.microsoft.com,1433…

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.
10,858 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,679 questions
asked 2024-09-05T15:43:22.9533333+00:00
Anthony 0 Reputation points
edited the question 2024-09-05T15:50:36.4733333+00:00
VarunTha 7,810 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

C# Extension method specificity

Suppose I have an interface and a class implementing that interface: public interface IFoo {} public class Foo : IFoo {} Now suppose I have defined an overloaded extension method on both the class and the interface: public static class FooExtensions…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 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.
10,858 questions
asked 2024-09-04T22:11:43.5866667+00:00
clmcgov 21 Reputation points
commented 2024-09-05T14:51:07.5033333+00:00
clmcgov 21 Reputation points