10,235 questions with C#-related tags

Sort by: Updated
0 answers

I'm trying to read excel from sharepoint by using asp.net but its giving me following error fail: PowerBi_Report.Controllers.HomeController[0] An error occurred while processing the request: The remote server returned an error: (401) Unauthorized.

I have all the permissions for excel present in sharepoint still I'm getting same error can someone please help me out on this I'm pasting my code below using System; using System.Diagnostics; using System.Net; using Microsoft.AspNetCore.Mvc; using…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 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,604 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,235 questions
asked 2024-04-25T10:50:08.6333333+00:00
Rathor, Pradnya 0 Reputation points
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,368 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,235 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
commented 2024-04-25T09:52:59.0733333+00:00
Olaf Helper 40,741 Reputation points
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,157 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,235 questions
asked 2024-04-24T10:30:29.13+00:00
iKingNinja 40 Reputation points
commented 2024-04-25T09:04:47.15+00:00
iKingNinja 40 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,368 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,235 questions
asked 2024-04-23T02:04:43.3933333+00:00
mc 3,641 Reputation points
commented 2024-04-25T08:37:49.9433333+00:00
mc 3,641 Reputation points
1 answer

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,827 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,798 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,235 questions
asked 2024-04-24T20:48:56.4066667+00:00
Roberto Carlos Melgar Dorado 40 Reputation points
commented 2024-04-25T07:04:37.24+00:00
Greg Low 1,485 Reputation points Microsoft Regional Director
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,157 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 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,235 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,235 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
0 answers

Part of this app has been blocked IIS Worker Process has tried to load Microsoft.Workflow.Compiler.exe

When launching an ASP.Net web application on a Windows 11 system with Smart App Control On, I'm getting the below toast notification. Part of this app has been blocked: IIS Worker Process has tried to load Microsoft.Workflow.Compiler.exe which doesn't…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 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,235 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,154 questions
Microsoft Intune Security
Microsoft Intune Security
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
331 questions
asked 2024-04-25T03:31:37.73+00:00
Pradeep Viswanathan 0 Reputation points
edited the question 2024-04-25T05:15:12.9466667+00:00
Lan Huang-MSFT 25,471 Reputation points Microsoft Vendor
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,368 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 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,235 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,235 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,821 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,293 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,235 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,291 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,235 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,480 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,706 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,368 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 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,235 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,480 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.

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,611 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 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,604 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,235 questions
asked 2024-04-24T14:20:14.18+00:00
Joe Babb 20 Reputation points
commented 2024-04-24T23:07:18.6933333+00:00
Bruce (SqlWork.com) 55,601 Reputation points
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,861 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,235 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
0 answers

Selection using Selection Rectangle

Can anyone please tell me how to make this kind of behaviour in our own WPF app. Right now i am making a File explorer kind of behaviour using the WPF datagrid. Can someone please help me with the logic or post some code. Here if we see the rows are…

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.
4,741 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,671 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,235 questions
asked 2024-04-24T04:34:37.6333333+00:00
Amit 20 Reputation points
commented 2024-04-24T17:36:54.68+00:00
Amit 20 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,235 questions
asked 2024-04-23T13:58:20.94+00:00
Noah Aas 80 Reputation points
accepted 2024-04-24T17:22:30.5266667+00:00
Noah Aas 80 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,827 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,695 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,235 questions
asked 2024-04-23T16:21:18.7333333+00:00
Roberto Carlos Melgar Dorado 40 Reputation points
accepted 2024-04-24T14:52:18.47+00:00
Roberto Carlos Melgar Dorado 40 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,235 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,671 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,235 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