11,333 questions with C#-related tags

Sort by: Updated
0 answers

'The instance of entity type 'Book' cannot be tracked' Error in Entity Framework and Displaying Uncommitted Changes in the UI

Hello, I encountered the following issue while working on my C# WPF project: I make updates to an entity on the UI side but do not send these changes to the database. Later, when listing the entity objects I updated on the UI side, I noticed that…

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.
11,333 questions
asked 2025-03-09T11:06:43.0733333+00:00
fatih uyanık 200 Reputation points
1 answer

What change does the keyword "await" make?

Hello, Without "await" keyword FileStream.ReadAsync return "Task<int>". With "await" keyword FileStream.ReadAsync return "int". Could you please why this happened? What happens behind the scenes?

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.
11,333 questions
asked 2025-03-08T21:56:27.31+00:00
Shervan360 1,641 Reputation points
answered 2025-03-08T22:17:07.88+00:00
Marcin Policht 38,000 Reputation points MVP
0 answers

Internal server error when uploading Customer List or Customer List Item.

I am currently uploading the csv file with the contents below Type,Status,Id,Parent Id,Client Id,Modified Time,Name,Description,Scope,Audience,Action Type Format Version,,,,,,6.0,,,,,, Customer…

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.
11,333 questions
asked 2025-03-06T20:51:05.4366667+00:00
Hasmer Salubre 5 Reputation points
commented 2025-03-08T21:35:31.6866667+00:00
AgaveJoe 29,866 Reputation points
1 answer One of the answers was accepted by the question author.

How can I create Ai which can at least identifications of my learners

How can I create Ai which can at least identifications of my learners

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.
11,333 questions
asked 2025-03-08T19:24:23.8866667+00:00
NIZEYIMANA Eric 20 Reputation points
accepted 2025-03-08T19:26:45.6033333+00:00
NIZEYIMANA Eric 20 Reputation points
0 answers

How to drop attachment from new Outlook to my app (process IDataObject)

I have an application that allows Drop of attachments in NEW Outlook email. How do I process the contents in IDataObject, {"itemType":"attachment", "attachmentFile": …

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.
11,333 questions
asked 2025-03-08T08:02:18.11+00:00
Petar Madzharov 0 Reputation points
1 answer

WPF: Why BackgroundWorker.RunWorkerCompleted Event() throw an exception and main thread does not receive it?

Our WPF application targets .NET 4.8. The AbortableBackgroundWorkder class inherences from the BackgroundWorker class and used as following. there are two background workers: _protocolProcessorBackgroundWorker..DoWork() will call …

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.
11,333 questions
asked 2025-03-07T20:07:38.0433333+00:00
Jane Jie Chen 466 Reputation points
edited an answer 2025-03-07T23:24:38.9066667+00:00
Bruce (SqlWork.com) 72,026 Reputation points
1 answer One of the answers was accepted by the question author.

How to programmatically set an icon that is in resources in C#

I'm trying to programmatically set my program's icons in code using an icon in the resources in C#. This code here doesn't work: System.ComponentModel.ComponentResourceManager resources2 = new…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,924 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.
11,333 questions
asked 2022-10-21T00:55:11.923+00:00
Spamzilla 41 Reputation points
commented 2025-03-07T11:56:18.2+00:00
1 answer

Detecting Microsoft patch updates

Hi All, I am looking for detecting Microsoft patch updates programmatically using C#. The idea is to know the patch update time on the windows machines. Any help is much appreciated. Regards, Pradeep Pasam

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.
11,333 questions
asked 2025-03-07T04:20:44.4133333+00:00
Pasam Pradeep Sabarinadh 0 Reputation points
commented 2025-03-07T10:51:49.68+00:00
Pasam Pradeep Sabarinadh 0 Reputation points
1 answer

Microsoft Extensibility SDK for C# for SQL Server

https://learn.microsoft.com/en-us/sql/language-extensions/tutorials/search-for-string-using-regular-expressions-in-c-sharp?view=sql-server-ver16 As mentioned in the above link carried out all the steps. However when I execute below command I am getting…

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.
11,333 questions
asked 2025-03-06T10:50:46.18+00:00
Tarale, Sandeep 0 Reputation points
commented 2025-03-07T08:34:58.73+00:00
Tarale, Sandeep 0 Reputation points
1 answer One of the answers was accepted by the question author.

InputTransparent not working on a BoxView?

It appears the InputTransparent is not working properly? I set it to false, yet any controls underneath still receive taps. <AbsoluteLayout VerticalOptions="Fill" BackgroundColor="#5774ED"> <ActivityIndicator…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,982 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.
11,333 questions
asked 2023-01-22T23:49:05.59+00:00
Phunction 301 Reputation points
commented 2025-03-07T06:04:29.2266667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,126 Reputation points Microsoft External Staff
1 answer

Ho to control "Microsoft.Azure.WebJobs.Script.WebHost.Middleware.SystemTraceMiddleware" logs being sent to my Datadaog?

We have integrated the datadog for capturing the azure function application insights logs. Its taking too much of our datadog resources. How to control that? I tried many methods like putting different values in the host.json, But nothing is…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,504 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.
11,333 questions
asked 2025-02-17T05:24:50.19+00:00
Vijayasundhar Nanjundan 0 Reputation points
edited a comment 2025-03-07T03:55:42.82+00:00
Pravallika Kothaveeranna Gari 160 Reputation points Microsoft External Staff
0 answers

problema con el designer de vs2022

Hola Buenas. Yo soy un joven programador que usa vs studio para sus proyectos de c# y tambien uso el ayudante copilot del vs, y quisiera saber porque me da un error en el diseño cada vez que edito el codigo con el ayudante

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.
11,333 questions
asked 2025-03-06T21:50:57.58+00:00
gilbert garcia 0 Reputation points
commented 2025-03-07T02:39:27.3466667+00:00
Jiale Xue - MSFT 49,126 Reputation points Microsoft External Staff
1 answer

Entity Framework Eagerly Loading Related

Hi there, Which of the following two is better for performance? Requisition req = _context.Requisitions.Where(r => r.Id == id).Include(r=> r.Beneficiary).Include(r=> r.RequisitionStatus).FirstOrDefault(); Requisition req =…

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.
11,333 questions
asked 2025-03-05T06:43:34.1466667+00:00
Tarique Iqbal 0 Reputation points
commented 2025-03-07T01:07:18.1033333+00:00
Hongrui Yu-MSFT 4,840 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

How to upgrade MySQL library in a C#program that works with Enterprise Library 6.5

Greetings. I have a web site program, programmed on C#, MVC, with Enterprise Library 6.5, but it works as database with MySQL 5.7.22. I want to upgrade the MySQL library to the latest one (8.0.41), but during compile process I got an error due…

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.
11,333 questions
asked 2025-03-01T18:14:09.7033333+00:00
HECTOR HERNANDEZ F 40 Reputation points
answered 2025-03-07T00:05:25.2966667+00:00
HECTOR HERNANDEZ F 40 Reputation points
2 answers

Troubleshoot Azure app service API from Kudu debug console cmd

HI Team , I have published Angular + Dotnet core API in azure app service . When i try to access my API using https://{{}servername}.azurewebsites.net/API/swagger/index.html , I am getting below message "The page cannot be displayed…

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.
11,333 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,434 questions
asked 2022-05-06T18:12:53.547+00:00
Subin Joseph 1 Reputation point
answered 2025-03-06T16:52:03.8666667+00:00
Edgar Barrientos 0 Reputation points
0 answers

Method AppInstallManager.StartProductInstallAsync() not working on a service in release mode

Hi team, I’m trying to download a product using the method appinstallmanager.startproductInstallasync() on my service, but it seems to not be working. Actually, when I use it in debug, it works properly. But when I generate an msix and run it in release,…

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.
11,333 questions
asked 2025-03-05T05:06:31.34+00:00
Rhuan Inocêncio 0 Reputation points
commented 2025-03-06T12:25:49.7833333+00:00
Rhuan Inocêncio 0 Reputation points
1 answer

Settings.Default.Upgrade does not copy over the user settings to new release

Hello, I'm writing a console app in Winform with Visual Studio 2019. I want the user settings to persist every time I release a new version. I'm using this piece of code to do that. if (Properties.Settings.Default.UpgradeRequired) …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,924 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,447 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.
11,333 questions
asked 2021-04-12T10:06:38.903+00:00
Dinh Ton 1 Reputation point
commented 2025-03-06T10:10:47.1733333+00:00
Nick Brown 0 Reputation points
7 answers One of the answers was accepted by the question author.

How to create Excel file with Visual Studio 2022 and C#

I'm working with Visual Studio 2022, Project WPF C# with .Net 6.0 and Entity Framework Core. DataBase MS SQL Express.I have also a valid and active licence Microsoft Office 365. I try to Create an Excel File but I have different error msg (see…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,175 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.
11,333 questions
asked 2023-08-06T15:37:30.7133333+00:00
Dmtr_Grms 331 Reputation points
commented 2025-03-06T08:43:15.9966667+00:00
subbarayan C 0 Reputation points
1 answer

Announcing Control Changes for Screen Readers in My WPF Project?

Hello everyone, In my WPF project, I want to implement screen reader support, particularly in registration forms, for visually impaired users. My goal is to ensure that changes in controls (e.g., textboxes, comboboxes, checkboxes, etc.) and error…

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.
11,333 questions
asked 2025-03-04T12:31:02.8766667+00:00
fatih uyanık 200 Reputation points
edited a comment 2025-03-06T03:31:14.48+00:00
Hongrui Yu-MSFT 4,840 Reputation points Microsoft External Staff
1 answer

Way to retreive the mails

Hi, Is it a good way to use SmtpServer and retrieve all of the mails (of a period) to one mail account? And get all of the details of the mails?

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.
11,333 questions
asked 2025-03-04T04:53:04.7133333+00:00
Peter_1985 2,711 Reputation points
commented 2025-03-05T05:56:33.7766667+00:00
Jiale Xue - MSFT 49,126 Reputation points Microsoft External Staff