10,625 questions with C#-related tags

Sort by: Updated
1 answer

MS Graph Throttling

I have a GraphServiceClient call. I am having throttling issues and am trying to access the header information that contains the information about the remaining Rate-limit. It seems as though this header does not exist in a…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,383 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,625 questions
asked 2023-09-12T17:24:04.94+00:00
Gerard Lanphear 0 Reputation points
answered 2024-06-23T11:39:55.19+00:00
Sourabh Gupta 800 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to exclude matching records in EF Core Database

I've been working on a project from a gentleman that is no longer on my team. We want to have the below code running as a Windows Service, running every 5 minutes (easy for me to do the Service). However, if we run the below code in our API, manually…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
725 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,625 questions
asked 2024-06-20T04:43:10.63+00:00
muttBunch 100 Reputation points
commented 2024-06-23T05:41:37.58+00:00
muttBunch 100 Reputation points
1 answer

Unable to add data source to chat client with C# 7.3

I am working on a UWP application that interacts with Azure OpenAI chat client. I have been using the latest Nuget package (2.0.0-beta.2) and have had some success creating and using a chat client. I am now trying to add a data source to my chat client,…

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,625 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,612 questions
asked 2024-06-21T14:21:38.3366667+00:00
Alex Kienzle 5 Reputation points
answered 2024-06-22T07:24:12.0333333+00:00
gekka 8,061 Reputation points MVP
1 answer

Filter on Guid for AppRoleAssignedTo.PrincipalId does not seem to work as expected

See: https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2306 Describe the bugUsing C# SDK nuget package Microsoft.Graph 5.40.0. Any time we try to create a filter like var userId = "<GUID VALUE>"; if(!Guid.TryParse(userId,…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,383 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,625 questions
asked 2024-01-29T10:42:53.76+00:00
Charles Laymon 25 Reputation points
edited a comment 2024-06-21T18:58:07.4933333+00:00
Zoltán Zörgő 0 Reputation points
4 answers One of the answers was accepted by the question author.

How to design patterns from scratch using C# asp.net MVC

I am new to building design pattern using factory design pattern, its C# asp.net mvc application which i am going developing my new web application, please can you help me how to start from scratch. I have worked one design pattern application which is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,623 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,410 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,625 questions
asked 2024-04-19T14:27:10.4633333+00:00
coder rock 276 Reputation points
accepted 2024-06-21T18:41:50.0666667+00:00
coder rock 276 Reputation points
3 answers One of the answers was accepted by the question author.

How to achieve key/value pair max accurately with simple string using c#

I have simple string value line which contain below content. logo Name raj mobile 9038874774 address 6-98 india bill auto generated Now I am trying key/Value pair to achieve my detail and the pair value output expecting like below [0] Key: Name …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,410 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,625 questions
asked 2023-11-16T21:05:40.3933333+00:00
coder rock 276 Reputation points
accepted 2024-06-21T18:38:51.3+00:00
coder rock 276 Reputation points
1 answer One of the answers was accepted by the question author.

How to achieve Named Entity Recognition (NER) using C# asp.net

When we read a text, we naturally recognize named entities like people, values, locations, and so on. For example, in the sentence “Mark Zuckerberg is one of the founders of Facebook, a company from the United States” we can identify three types of…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,410 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,625 questions
asked 2024-06-18T09:45:00.54+00:00
coder rock 276 Reputation points
accepted 2024-06-21T18:37:17.86+00:00
coder rock 276 Reputation points
2 answers One of the answers was accepted by the question author.

My EmailConfirmed is not working

Hi, I'm new to this, so I'm not so good, your help is my pleasure, thank you. I am having a problem with login, the API emailConfirmed still works when I give it token and userId. As far as I know, the EmailConfirmed doesn't confirm itself. I think I…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
654 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
725 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,383 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,625 questions
asked 2024-06-20T20:04:22.7933333+00:00
Nhựt Lại 45 Reputation points
accepted 2024-06-21T15:22:48.6833333+00:00
Nhựt Lại 45 Reputation points
1 answer One of the answers was accepted by the question author.

GetRowCount question

Hello I just found something here: https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/selection-modes-in-the-windows-forms-datagridview-control?view=netframeworkdesktop-4.8&source=recommendations You can retrieve a collection of 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.
10,625 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,661 questions
asked 2024-06-20T12:20:47.3666667+00:00
StewartBW 865 Reputation points
accepted 2024-06-21T12:39:03.4066667+00:00
StewartBW 865 Reputation points
1 answer

How to fix mediaInitializationFailure: Media platform failed to initialize and 'Could not find a matching certificate for thumbprint'

Hi I am trying to run https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/master/Samples/PublicSamples/EchoBot locally using ngrok free account. Since we need to tunnel both HTTP and TCP ports so used cloudfare. Using cloudfare created…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,585 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,383 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,625 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,053 questions
asked 2024-06-14T06:42:04.5866667+00:00
Khadeer 0 Reputation points
edited an answer 2024-06-21T10:58:33+00:00
Khadeer 0 Reputation points
1 answer

Save All GridView PageIndex Rows showing Duplicate rows in Database

Please help. How to Browse all 3 GridView Pages above and INSERT all rows into DB on Save Button click. Using below code is showing Duplicate row on last gridview page which is having only one record in its page 3. Thanks public void SaveButton(int…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,410 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,625 questions
asked 2024-06-18T15:39:35.17+00:00
Imoleayo Emmanuel 20 Reputation points
commented 2024-06-21T09:57:46.4333333+00:00
QiYou-MSFT 4,311 Reputation points Microsoft Vendor
1 answer

How to reference global resources in user controls in wpf class library projects

I created a WPF class library, and then added a UserControl "Card.xaml", and a resource dictionary "GlobalRes.xaml", I hope to use the style resources in GlobalRes in the Card control. As shown…

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,710 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,625 questions
asked 2024-06-21T05:17:59.38+00:00
HoWe Yu 41 Reputation points
answered 2024-06-21T06:28:41.0333333+00:00
Hongrui Yu-MSFT 945 Reputation points Microsoft Vendor
1 answer

Handling MRNs (Medical Record Numbers) with Compensating Transactions in .NET Core Micro services using the Saga Pattern

In a hospital management system built with micro services using .NET Core and Entity Framework, how can we ensure data consistency when generating Medical Record Numbers (MRNs)? Since MRNs cannot be deleted, how can we handle situations where a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,383 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.
13,319 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,625 questions
asked 2024-06-20T13:54:23.2666667+00:00
Binu S 0 Reputation points
edited a comment 2024-06-21T05:43:58.2+00:00
Binu S 0 Reputation points
1 answer One of the answers was accepted by the question author.

Getting error while passing ajax control date (dd/MM/yyyy) as parameter in ASP.NET

I am using AJAX Calendar control inside the gridview control. I have set the date format as "dd/MM/yyyy" and my SQL column as "DOJ" field data type is nvarchar(10). End user want always the format like "dd/MM/yyyy". I am…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,410 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,625 questions
asked 2024-06-20T13:59:43.9666667+00:00
BeUnique 2,112 Reputation points
commented 2024-06-20T17:35:44.0033333+00:00
BeUnique 2,112 Reputation points
1 answer One of the answers was accepted by the question author.

Why am I getting a "D2DERR_WRONG_FACTORY" error in this code when I use a list?

I'm attempting to use Sharp DX to display a dxf file and I'm getting a "[D2DERR_WRONG_FACTORY/WrongFactory]" whenever I render using the below code: public override void Render(RenderTarget target) { target.Clear(new RawColor4(1.0f, 1.0f,…

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,625 questions
asked 2024-06-18T12:31:19.3566667+00:00
Forrest Crawford 60 Reputation points
accepted 2024-06-20T17:22:12.39+00:00
Forrest Crawford 60 Reputation points
2 answers

Concurrency Handling in Entity Framework Core with Transactions and Master Data

Question: We have two tables: Orders (transaction table): Stores order details and references a customer using CustomerID. Customers (master table): Stores customer information. The Orders table has a RowVersion column for optimistic locking. The…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,383 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.
13,319 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,625 questions
asked 2024-06-20T13:55:57.4333333+00:00
Binu S 0 Reputation points
commented 2024-06-20T17:05:34.66+00:00
Binu S 0 Reputation points
1 answer One of the answers was accepted by the question author.

What is the best way to sending mail from gridview check box checked row

I am using gridview and it contains checkboxes. when i click submit button, i am sending mail to the customer for every checking record. if i save record without mail, data will be saving more accurate and fast. But, when i send mail for every records…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,410 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,625 questions
asked 2024-06-18T08:37:52.73+00:00
BeUnique 2,112 Reputation points
accepted 2024-06-20T13:45:33.79+00:00
BeUnique 2,112 Reputation points
0 answers

How to organize icons on navbar using Bootstrap in a Blazor WASM app with .NET 6?

I'm working on an e-commerce app and I want to properly organize the icons on my navbar using Bootstrap 5 CSS. Specifically, I want to display the icons side by side, with equal spacing, and have the username appear right under the green login icon. Can…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,383 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.
1,495 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,625 questions
asked 2024-06-14T13:48:29.6+00:00
Cenk 991 Reputation points
commented 2024-06-20T09:30:21.6633333+00:00
Jerry Fu - MSFT 571 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

The sign-in name or password does not match one in the Microsoft account system

This is my console app project. Previously it was running perfectly but last week it suddenly cannot run. When I try locally, it shows me this error: "The sign-in name or password does not match one in the Microsoft account system". What I…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,249 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,625 questions
asked 2024-06-14T05:30:32.3933333+00:00
Hong Guan Lim 20 Reputation points
accepted 2024-06-20T09:07:10.4+00:00
Hong Guan Lim 20 Reputation points
1 answer

how to make a telegram game in c#?

hi I have a question about telegram games. can we make a game like hamster kombat and etc in telegram with c# language?

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,625 questions
asked 2024-06-20T07:31:27.37+00:00
Farshad Valizade 421 Reputation points
answered 2024-06-20T09:00:22.68+00:00
Jiale Xue - MSFT 42,816 Reputation points Microsoft Vendor