Microsoft Q&A

C#

6,914 questions

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.

Browse all C# tags

6,914 questions with C#-related tags

Sort by: Updated
1 answer

Best options for creating modern C# database programs

Hello, I have been using Microsoft Access for a while to create programs for small business activities. I would like to create more modern programs using C# to take advantage of the new Microsoft technologies for the front-end and back-end database. What…

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.
6,914 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
1,934 questions
asked 2023-01-28T10:14:25.5366667+00:00
Yusuf 591 Reputation points
answered 2023-01-28T10:39:07.8766667+00:00
Karen Payne MVP 29,131 Reputation points Microsoft MVP
0 answers

c# Server, Client, Duplex mode

Hello, I'm looking for a good example to exchange this between server and client. Both should be able to make unsolicited inquiries. Duplex operation. Who can help me, who can post a good example? IP="127.0.0.1" Port="8029" …

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.
6,914 questions
asked 2023-01-28T10:20:44.1266667+00:00
Markus Freitag 2,936 Reputation points
0 answers

How to give user to only access his user profile and block other all folders for him in windows 10

Anyone know how to give user to only access his user profile and block other all folders for him in windows 10

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.
6,914 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,899 questions
Access
Access
A family of Microsoft relational database management systems designed for ease of use.
22 questions
asked 2023-01-28T09:10:16.23+00:00
Janith Sahasra 1 Reputation point
1 answer One of the answers was accepted by the question author.

How to ignore ETag checking and fix this error

I read from and write to blob content in Azure blob storage. File is being changed (new content is getting appended to the file) at the same time while it is being downloaded. I get error in the below stream.Read() line. Which I believe is because 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.
6,914 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,524 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
781 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,387 questions
asked 2023-01-18T12:50:17.69+00:00
Sarah 131 Reputation points
accepted 2023-01-28T07:59:17.6133333+00:00
Sarah 131 Reputation points
1 answer

seralize object returns empty file after save

Hello All, Morning: I'm reading a XML file to fill the datagrid have no issues; then i modify the some values in the datagrid then save back to the xml file without changing the structure of the file. When i tried to seralize the file, empty file is…

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.
6,914 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,169 questions
asked 2023-01-26T12:46:59.28+00:00
Kran2022 241 Reputation points
commented 2023-01-28T06:59:30.2566667+00:00
Kran2022 241 Reputation points
1 answer

Intent Filter / DeepLink .Net MAUI

I want to implement an application that will be viewable in my application using Intent Filter. I added in the MainActivity.cs file Filter Intent [IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.ActionView, Intent.CategoryDefault,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
599 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
871 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.
6,914 questions
asked 2023-01-19T14:47:27.51+00:00
Влад Тигинян 0 Reputation points
accepted 2023-01-28T06:09:21.7566667+00:00
Влад Тигинян 0 Reputation points
2 answers One of the answers was accepted by the question author.

Basic Syntax Format of a C# Console Application

I am new to C#. I am confused on how to initiate a C# console application. I tried some examples except none of them seem to work. The format of a C# Console Application has changed a lot recently, so I don't know how to start. Could someone help get me…

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.
6,914 questions
asked 2023-01-28T00:28:52.43+00:00
Marc Menzel 41 Reputation points
accepted 2023-01-28T03:28:41.4933333+00:00
Marc Menzel 41 Reputation points
2 answers One of the answers was accepted by the question author.

How to read a file from external server

Hi I want to read csv file from the following URL (display only rider name) [http://www.votrecourse.com/medias/xml/?C=M;O=D/] file name = timetrial.csv pls help me in this.

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.
6,914 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,825 questions
asked 2023-01-26T06:41:49.8066667+00:00
Ramesh Sunderasan 20 Reputation points
commented 2023-01-28T02:40:57.19+00:00
Ramesh Sunderasan 20 Reputation points
1 answer

UWP CreateOutputReport failed to create report ID

The following code has an error, System. Exception: "The data is invalid. The specified report type is not present. What is the reason? Error statement: var outputReport = hiddevice.CreateOutputReport(0);  The handle was opened, but the output…

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.
6,914 questions
Universal Windows Platform (UWP)
asked 2023-01-13T03:54:22.5666667+00:00
yu chen 0 Reputation points
edited an answer 2023-01-28T02:26:15.0166667+00:00
yu chen 0 Reputation points
2 answers

Problem querying JSON using LINQ when there are semicolons in the name tag

I'm trying to work with a Json file from an outside source. They put semicolons and additional data in some the field names. I'm trying to query the data using LINQ and having problems. Is there a way of specifying wildcards in LINQ queries? I'm…

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.
6,914 questions
asked 2023-01-27T09:11:06.9366667+00:00
Richard Rosenheim 1 Reputation point
answered 2023-01-27T23:30:37.2133333+00:00
Richard Rosenheim 1 Reputation point
1 answer

Performance issues - Sql Server 2022 Standard Edition

Hi, I've been using SQL Server 2014 express to store data and interact with my C# applications on Windows 10 for different years. I wanted to do some test with Sql Server 2022 before upgrading to that version so I've installed the Evaluation Edition (all…

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.
6,914 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,389 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.
8,468 questions
asked 2023-01-27T14:01:43.71+00:00
Leonardo Azzari 0 Reputation points
answered 2023-01-27T22:54:07.01+00:00
Erland Sommarskog 67,481 Reputation points Microsoft MVP
1 answer One of the answers was accepted by the question author.

Parse an array of objects to a JSON tree structure

I'm trying to use the bootstrap treeview and the JSON needs to be a certain format. I currently have this format: var data = [ { make: "Chevy", model: "2500", location: "lot" }, { make:…

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.
6,914 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
599 questions
asked 2023-01-27T12:38:51.11+00:00
TheCoder 61 Reputation points
edited the question 2023-01-27T21:22:01.69+00:00
Reza Aghaei 2,601 Reputation points Microsoft MVP
1 answer

Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'

I have a .NET Console 6 to access API data. The application works on my desktop (Windows 10) but an error "System.Net.Http.HttpRequestException: The SSL connection could not be established" is thrown when running the application on Windows…

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.
6,914 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
289 questions
asked 2022-03-09T00:13:45.8+00:00
cyy 21 Reputation points
commented 2023-01-27T21:07:09.8766667+00:00
Pamani, Praveen Kumar 0 Reputation points
1 answer

Could not resolve type with token 01000021 from typeref

I am trying to create virtual appointments based on this documentation: https://learn.microsoft.com/en-us/graph/api/application-post-onlinemeetings?view=graph-rest-1.0&tabs=csharp Here is my code: InteractiveBrowserCredentialOptions…

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.
6,914 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
556 questions
asked 2023-01-19T17:52:56.6433333+00:00
Dmitriy Reznik 206 Reputation points
edited a comment 2023-01-27T20:18:37.7433333+00:00
Dmitriy Reznik 206 Reputation points
1 answer

Debugging Shell Navigation

Hello Friends, I was wondering if anyone knows where to put my DebuggerDisplay Attribute annotations so that I can debug my navigation requests. Thanks !!! Debugging navigation Some of the Shell classes are decorated with the DebuggerDisplayAttribute,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
871 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.
6,914 questions
asked 2023-01-27T19:08:08.5433333+00:00
Ronald Rex 506 Reputation points
commented 2023-01-27T20:01:26.1666667+00:00
Ronald Rex 506 Reputation points
0 answers

C# TCP/IP, Client with reconnect and timeout

Hello, I am looking for a good example how to create a client. There should be a timeout if no connection could be created. Then until 3 times automatic retry. If there is no response after the request, there should be error message, timeout. The request…

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.
6,914 questions
asked 2023-01-26T16:59:17.22+00:00
Markus Freitag 2,936 Reputation points
commented 2023-01-27T17:21:24.3133333+00:00
Markus Freitag 2,936 Reputation points
4 answers One of the answers was accepted by the question author.

C# Events and Delegates - when should I take what?

Hello, I'm looking for a correct way to handle events and delegates. Do you have a good overview, a good example? When is an event enough, when do I have to switch to delegates? If I trigger an event and want to pass a complete object, then I need a…

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.
6,914 questions
asked 2023-01-23T18:28:06.5433333+00:00
Markus Freitag 2,936 Reputation points
accepted 2023-01-27T17:18:59.65+00:00
Markus Freitag 2,936 Reputation points
3 answers

How to loop through JSON data?

Hi, I am calling an api and this is the return data. Could you please help me to loop through the JSON data? The JSON string - { "Outputdata": { "@xmlns": "http://xmlns.oracle.com/apps/pa/.......", …

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.
6,914 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,174 questions
asked 2023-01-25T17:43:30.51+00:00
Paul 0 Reputation points
commented 2023-01-27T17:09:35.5266667+00:00
Paul 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to use Service Principal/Managed Identities to access Azure App Configuration from .NET Framework Application?

I need to disable Local Authentication Methods (Access Keys) for Azure App Configuration Stores. Currently for an ASP.NET Framework application, I am using the following for accessing the App Configuration Store from my…

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.
6,914 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
579 questions
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
186 questions
asked 2023-01-12T12:30:34.1466667+00:00
Aayush Suresh Jain 21 Reputation points
accepted 2023-01-27T17:00:03.9033333+00:00
Aayush Suresh Jain 21 Reputation points
1 answer

I am not getting a System.AccessViolationException using GetOleDbSchemaTable

I am developing an application that has been working just fine until today. The only variable in my environment is I received the latest Windows 10 & Office 365 patches. This code has been functioning fine until after I rebooted from the patches. …

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.
6,914 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,314 questions
Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
726 questions
asked 2023-01-26T15:08:35.0233333+00:00
Pat Hanks 61 Reputation points
answered 2023-01-27T16:19:48.11+00:00
Pat Hanks 61 Reputation points