10,249 questions with C#-related tags

Sort by: Updated
2 answers

Custom ApiController Model Binding type conversion error

According to the Model Binding documentation: In an API controller that has the [ApiController] attribute, invalid model state results in an automatic HTTP 400 response. So when I send an invalid type in the request body (e.g. int instead of string),…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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,249 questions
asked 2024-04-24T10:30:29.13+00:00
iKingNinja 40 Reputation points
edited a comment 2024-04-26T02:38:26.13+00:00
Ping Ni-MSFT 2,085 Reputation points Microsoft Vendor
1 answer

Why => is called token?

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-operator is => a Token?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 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,249 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,119 questions
asked 2024-04-24T23:59:48.6466667+00:00
LAN SHUHAO 0 Reputation points
edited an answer 2024-04-25T23:17:45.64+00:00
Bruce (SqlWork.com) 56,026 Reputation points
2 answers One of the answers was accepted by the question author.

Error loading report.rdlc,Unable to copy bin\debug\

Good afternoon again, I have already searched for information online, but I have not been able to find the error. The error is the following: An error occurred during local report processing. The report definition has not been specified, the file is not…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,799 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,249 questions
asked 2024-04-24T20:48:56.4066667+00:00
Roberto Carlos Melgar Dorado 60 Reputation points
accepted 2024-04-25T20:02:00.6933333+00:00
Roberto Carlos Melgar Dorado 60 Reputation points
1 answer

How to convert from AutomationElement of uiautomation library to AutomationElement of flaui library?

How to convert an object ele of type **AutomationElement **defined by Microsoft's uiautomationg library(uiautomation) to a flauiEle object of type **AutomationElement **defined by the flaui library? Both uiautomation library and flaui library are for…

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,249 questions
asked 2024-04-25T14:30:02.33+00:00
lf l 0 Reputation points
answered 2024-04-25T15:05:55.71+00:00
Michael Taylor 48,281 Reputation points
1 answer One of the answers was accepted by the question author.

what is the most current Windows platform for .NET and C#

I see on the internet that MS has deprecated UWP. What do I need to add to my Visual Studio 2022 Community edition in order to program using the latest flavor of Windows for general Windows Apps? I'm getting frustrated trying to discern the myriad…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,619 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 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,607 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,249 questions
asked 2024-04-24T14:20:14.18+00:00
Joe Babb 60 Reputation points
commented 2024-04-25T11:42:07.5866667+00:00
Joe Babb 60 Reputation points
0 answers

how to export function in dll to aot?

I created .net class library to build dll and want to publish native aot and I write function public static MyClass { public static int MyFun(int n) { return n*n; } } I publish it to native aot to win-x64 but in dll there is no function why?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 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,249 questions
asked 2024-04-23T02:04:43.3933333+00:00
mc 3,681 Reputation points
commented 2024-04-25T08:37:49.9433333+00:00
mc 3,681 Reputation points
1 answer

Dangerous site - attackers on the site you're trying to visit might trick you

I have an intranet site. This site is hosted on our internal server 2019 on IIS version 10.0. This website is just a web page that enables the employees to fill out their information and then populates a .pdf file from the information that they fill out.…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,255 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,249 questions
asked 2024-04-19T18:56:41.28+00:00
Anjali Agarwal 1,366 Reputation points
edited the question 2024-04-25T06:42:47.42+00:00
Sam Wu-MSFT 7,036 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Draw rectangle with corner radius and fit an image bytes to that rectangle with same corne radius

Below I attached my code I need an image with a border and corner radius, please correct my code, and give any other guidelines CanvasRenderTarget renderTarget = new CanvasRenderTarget(device, cardWidth, cardHeight, dpi); using…

Universal Windows Platform (UWP)
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,249 questions
asked 2024-04-23T07:21:58.97+00:00
Saranya Karthik 40 Reputation points
commented 2024-04-25T05:25:19.1933333+00:00
Saranya Karthik 40 Reputation points
1 answer

How to restore direct dependencies packages only by 'restore --packages' command

I want to restore a .NET project's packages by command line dotnet restore --package. The behavior like this in dotnet restore doc: Package Restore first installs the direct dependencies of a project as needed, then installs any dependencies of those…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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,249 questions
asked 2024-04-24T03:50:34.2266667+00:00
Charlie Xie 0 Reputation points
edited an answer 2024-04-25T05:07:57.15+00:00
Robert J. Foley 0 Reputation points
2 answers

Linq how to joins with Left Outer and more than 2 tables

I asked the question (https://learn.microsoft.com/en-us/answers/questions/1659579/linq-join-of-3-tables) and got an answer which works but is not entirely what I need. With each join the result set gets smaller as not all instance have an entry in each…

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,249 questions
asked 2024-04-24T19:10:49.03+00:00
Lloyd Sheen 1,376 Reputation points
answered 2024-04-25T03:21:57.11+00:00
Jiale Xue - MSFT 31,976 Reputation points Microsoft Vendor
0 answers

How to create a custom keyboard in Xamarin?

Hello, What is the process for designing a custom number pad in Xamarin forms to be displayed in certain fields, while others still use the native Android keyboard for input? I'd like to avoid using axml as I am not familiar with it, and the default…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 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,249 questions
asked 2024-04-19T04:40:16.8166667+00:00
Immanuel D 0 Reputation points
commented 2024-04-25T01:54:18.1266667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
0 answers

Excel thumbnails in Taskbar are gray and dull

In the taskbar of Windows 10 I can see the thumbnails of all the open workbboks of an Excel application. (I believe thumbnail is the correct term). Sometimes these are show pretty dull, i.e. sometimes they are just gray boxes without any information (and…

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,249 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.
3,489 questions
asked 2024-04-24T07:28:07.7966667+00:00
Magne 126 Reputation points
edited the question 2024-04-25T01:37:01.3466667+00:00
Emi Zhang-MSFT 21,856 Reputation points Microsoft Vendor
0 answers

Can't convert Word Document Equation into HTML readable format text like MathML in C#

I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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,249 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.
3,489 questions
asked 2024-04-24T04:35:09.1466667+00:00
conduct exam 0 Reputation points
edited the question 2024-04-25T01:00:20.91+00:00
Jiachen Li-MSFT 26,506 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Linq join of 3 tables

I have three tables with same fields. I can join 2 tables with following Linq. List<CommonPoints> lista = poso.assists.ToList(); List<CommonPoints> listp = poso.points.ToList(); List<CommonPoints> listg=poso.goals.ToList(); var…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 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,249 questions
asked 2024-04-23T20:58:23.7866667+00:00
Lloyd Sheen 1,376 Reputation points
commented 2024-04-24T19:25:13.7533333+00:00
Lloyd Sheen 1,376 Reputation points
1 answer One of the answers was accepted by the question author.

Select - SelectMany - Any - the differences, when should I take what?

Hello! Is there a procedure? 1:n relationships From the data model to an XML file and generate queries from it? Data model --> XML Serialize --> Save as xml file, read the xml file and make queries. Where do I have problems? The procedure. …

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,249 questions
asked 2024-04-23T13:58:20.94+00:00
Noah Aas 100 Reputation points
accepted 2024-04-24T17:22:30.5266667+00:00
Noah Aas 100 Reputation points
2 answers One of the answers was accepted by the question author.

VS 2022 ReportViewer Error: "The report cannot be displayed. The report viewer could not find a report definition."

Please help me with this problem I'm having. I'll start by explaining my problem: I need to load reports, and for that I'm using the native reports of VS 2022. Here's what I've done so far: I created my .xsd file called DataSetInformes.xsd I added my…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 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,715 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,249 questions
asked 2024-04-23T16:21:18.7333333+00:00
Roberto Carlos Melgar Dorado 60 Reputation points
accepted 2024-04-24T14:52:18.47+00:00
Roberto Carlos Melgar Dorado 60 Reputation points
1 answer

How to publish a program that use SQLITE3? (C#)

Basically i wrote a program that use SQLITE3. The path used in my program is correct because uses the relative path and file is in the correct folder. So, i finished the program and i need to send to another person. This person doesn't need to install…

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,249 questions
asked 2024-01-17T17:12:20.6933333+00:00
Alexandre Dantas 40 Reputation points
commented 2024-04-24T13:55:39.8133333+00:00
Fabian Eschenbrücher 0 Reputation points
1 answer One of the answers was accepted by the question author.

Selection Rectangle not moving along with datagrid content during scroll.

I am attempting to replicate the selection behavior of Windows File Explorer within a WPF DataGrid. Specifically, I aim to implement a selection rectangle that mimics the functionality of File Explorer's selection mechanism. Currently, I have created an…

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,672 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,249 questions
asked 2024-04-11T05:08:56.16+00:00
Amit 20 Reputation points
accepted 2024-04-24T10:02:06.8933333+00:00
Amit 20 Reputation points
1 answer

Update/Set SignatureHTML with ExchangeService for Office 365 Users

Hello, Could you please confirm if the code below is not working? If so, I need guidance on how to change the OWA user signature globally, as we plan to reflect the company branding for all users. The OWAConfig does not include any key related to user's…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,592 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,249 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,177 questions
asked 2024-04-18T23:50:59.3966667+00:00
Akmal Eldahdouh 0 Reputation points
commented 2024-04-24T09:32:32.8333333+00:00
Noah Ma-MSFT 535 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Empty space between elements .NET MAUI

The entire page is a grid. I'm trying to position a child grid on top of the parent grid. This works on Android. On Apple up to iPhone 14 too. On iPhones 14 and 15, the space between the parent and child grids is displayed. <?xml…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 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,249 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
764 questions
asked 2024-04-19T07:41:18.8766667+00:00
Влад Тигинян 40 Reputation points
commented 2024-04-24T00:59:01.8733333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor