10,564 questions with C#-related tags

Sort by: Updated
1 answer

Error Verify Signature XML DGI UY always return false

I am working on validating the signature of an XML envelope in this case from Uruguay, but due to the signature verification method it always returns false using .Net C# The tests carried out with unsuccessful results, apply the following code 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.
10,564 questions
asked 2024-06-28T20:06:42.6466667+00:00
Alexi Tomala 0 Reputation points
commented 2024-07-02T18:55:20.1166667+00:00
Alexi Tomala 0 Reputation points
0 answers

How to decrypt the SOAP request

Hi,My requirement is to apply WS Security using RSAwithSHA256 using a certificate. This is how I am applying WSS to my XML: Apply WSS.txt After applying WSS, I send a SOAP request and receive an encrypted response whose body is like: encrpted…

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,564 questions
asked 2024-07-02T18:52:11.1266667+00:00
sonal khatri 51 Reputation points
2 answers One of the answers was accepted by the question author.

MS ResourceManagementClient.GetResources overload issue

I am new to C#. When I put following code in VS 2017 it shows error message: Error CS1503 Argument 2: cannot convert from 'int' to 'System.Collections.Generic.IEnumerable<string>' Error CS1503 Argument 3: cannot convert from 'string' to…

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,564 questions
asked 2024-07-01T17:37:49.0033333+00:00
Lee, Jeff 20 Reputation points
answered 2024-07-02T15:42:19.2666667+00:00
Lee, Jeff 20 Reputation points
1 answer

How to navigate to 3rd party URL in Blazor WASM?

Hi, I have an e-commerce solution. Using Blazor WASM .NET 6 for the client side. I am using a 3rd party payment gateway. Unfortunately, they don't have a great support and help desk so most of the time I am trying to find my way with trial and error. I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,336 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,471 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,564 questions
asked 2024-07-02T10:15:03.17+00:00
Cenk 986 Reputation points
edited an answer 2024-07-02T15:39:39.94+00:00
Bruce (SqlWork.com) 60,201 Reputation points
1 answer

ADFS retrieving claims using native client application

Hi, We are currently attempting to write a test application in C#, which needs to retrieve certain claims upon authorization. No matter what we have tried, it seems we only receive the same 10 claims from the ADFS server (see image for the received…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,566 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,220 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,564 questions
asked 2024-07-01T22:16:09.97+00:00
G_Niles 0 Reputation points
commented 2024-07-02T14:59:55.8133333+00:00
G_Niles 0 Reputation points
0 answers

Using Localization with DataAnnotation where do you put the ressources file and how to access it

I am using .Net Core 8 I succeed to use StringLocalizer and HtmlstringLocalizer I want to localized DataAnnotation the [Display(Name = "PhotoEpisode")] and the error message [Required(ErrorMessage = "Le sous-titre de l'épisode est…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,336 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,564 questions
asked 2024-07-02T14:57:31.1766667+00:00
Boucourt 65 Reputation points
1 answer

How to create a custom text editor VS2022

I am looking for some way to open a new window in visual studio that acts as a customizable text editor with the contents of a file (given by specified file path). I would then like to configure the features of the editor such as setting it to read only.…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,814 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,564 questions
asked 2024-06-28T15:32:31.28+00:00
helloWorld22 20 Reputation points
commented 2024-07-02T14:17:05.9666667+00:00
helloWorld22 20 Reputation points
1 answer

Apply WSS to SOAP request

Hi, My Requirement is to apply outgoing WSS using RSA with SHA 256 using a certificate to the XML. Can you help me with how to achieve this? XML request is attached. xml request.txt

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,564 questions
asked 2024-07-01T16:29:10.02+00:00
sonal khatri 51 Reputation points
commented 2024-07-02T10:53:56.6+00:00
sonal khatri 51 Reputation points
0 answers

How to make UWP MediaElement to be loop mode when casting to a TV?

I find that when using UWP MediaElement (component name: video), it works well to be in loop mode when set as below: video.IsLooping = true; // method 1 video.MediaEnded -= Video_MediaEnded; video.MediaEnded += Video_MediaEnded; // method 2 private…

Universal Windows Platform (UWP)
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,705 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,564 questions
asked 2024-06-28T08:17:01.82+00:00
Tom JD1 Xue 21 Reputation points
edited a comment 2024-07-02T10:19:28.7966667+00:00
Tom JD1 Xue 21 Reputation points
0 answers

Adding custom icons to files on desktop crashes explorer.exe

I have a Windows service application to add custom icons to files and directories using .Net Framework 4.5.2 SharpShell library. When I try to create a Microsoft Excel file on desktop, file icon moves to default file position on the desktop (top left).…

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,564 questions
asked 2024-07-01T14:07:16.77+00:00
Mustafa BAY 0 Reputation points
commented 2024-07-02T10:10:41.62+00:00
Mustafa BAY 0 Reputation points
2 answers

How Can I track the Last DPI which is sent by WM_DPICHANGED in WPF?

I want to scale my WPF application according to available screen DPI. I know there Per Monitor DPI aware available but that are completely different what I want to achieve. I want to disable scaling for my WPF application even if windows has some scale…

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,705 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,493 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,564 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,608 questions
asked 2024-06-23T21:10:17.6933333+00:00
MERUN KUMAR MAITY 531 Reputation points
commented 2024-07-02T08:58:37.5966667+00:00
Hongrui Yu-MSFT 780 Reputation points Microsoft Vendor
2 answers

On remote desktop machine (Windows 11), the DataGrid (WPF C# application .Net Framework 4.7.2) event is throwing System.Reflection.TargetInvocationException.

The DataGrid event is giving the exception"System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Added item does not appear at given index '4'. " while…

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,705 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,564 questions
asked 2024-07-01T14:03:37.68+00:00
Sharayu Mahadeorao P 0 Reputation points
answered 2024-07-02T08:29:44.59+00:00
Hongrui Yu-MSFT 780 Reputation points Microsoft Vendor
1 answer

Visual Studio Code syntax errors not being highlighted for C#

I am creating a new console project in Visual Studio Code using "dotnet run new console -n 'name'", but syntax errors are not being highlighted anymore. Even when I forget to use a ";" or make a syntax error, I don't see 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.
10,564 questions
asked 2024-02-20T22:26:47.7733333+00:00
Jeremy Marin 10 Reputation points
answered 2024-07-02T07:52:47.7+00:00
Rax 0 Reputation points
0 answers

Reading Emails from outlook in C#

Hi, hope you are well. Junior dev here. I am trying to figure out how to get my C# application to read emails from a certain address, if it matches then check if it has an attachment. IF it does extract the attachment and store it locally. I can not…

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,564 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,034 questions
asked 2024-07-02T06:46:39.94+00:00
Keagan S 0 Reputation points
4 answers

How to fix Add-Migration problem?

Hi, I am trying to add another entity to the database in my e-commerce solution which includes client and admin projects using Blazor WASM and Server, Asp.Net Core API, and data access projects. However, I am getting an error message as shown below: How…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
717 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,336 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,471 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,564 questions
asked 2024-06-24T17:33:35.47+00:00
Cenk 986 Reputation points
answered 2024-07-02T06:00:31.8533333+00:00
Cenk 986 Reputation points
0 answers

The data specified for the media type is invalid inconsistent or not supported by this object

Hi, I have an windows form application which is recording video by using Media Capture. This app is taking hundreds of record in a day but in a few days getting(once in 500-550 record) an error which below; "The data specified for the media type is…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,868 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,564 questions
asked 2024-07-01T14:58:38.8666667+00:00
Ali 0 Reputation points
edited a comment 2024-07-02T05:52:59.3433333+00:00
Jiale Xue - MSFT 41,976 Reputation points Microsoft Vendor
1 answer

Error when building Unity+MRTK3.0 project: 'The type or namespace name 'EyesPose' could not be found'

I am building a project with Unity+MRTK3.0, and I am getting an error that states: 'The type or namespace name 'EyesPose' could not be found'. However, the script 'EyeCalibrationChecker' has 'using Windows.UI.Input.Spatial'. The error message shows:I am…

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,564 questions
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
388 questions
asked 2024-07-01T09:26:28.8233333+00:00
Liang Chen 0 Reputation points
answered 2024-07-02T03:42:07.6566667+00:00
Ying Li - MSFT 890 Reputation points Microsoft Vendor
0 answers

Retrieving additional claims from ADFS server

Hi, We're new to ADFS application development, we are writing a native client test application and are hitting a bit of a brick wall with retrieving claims. We receive the same 10 claims regardless of what we do (attached image). We are writing in C#…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,566 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,220 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,564 questions
asked 2024-07-01T22:06:37.1866667+00:00
G_Niles 0 Reputation points
1 answer

.dll file working with windows 10 gets stuck on FileNotFoundException error with windows IoT Core.

Hello everyone, In the software that I created with Keyence image sensors, I run a .dll file and import the data from FTP to my program. In this software I created with Windows10 .Net Framework 4.8, the target version of the .dll file is 4.0.0. My…

Windows for IoT
Windows for IoT
A family of Microsoft operating systems designed for use in Internet of Things (IoT) devices.
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,564 questions
asked 2022-08-26T10:25:43.477+00:00
Fatih Kadir YILMAZ 11 Reputation points
commented 2024-07-01T21:41:14.92+00:00
Tadashi Konno 0 Reputation points
3 answers

EF Core - High Memory Usage For Query that Runs for 20 seconds

I'm wondering if there is a better way to optimize the below query. Granted, it's pulling in 80,000 - 160,000 records, but the RAM usage on my web server, shoots up to ~3gig while it's running for a total of 20 seconds, when testing it in my API, but,…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
717 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,564 questions
asked 2024-06-29T05:22:38.7933333+00:00
muttBunch 100 Reputation points
answered 2024-07-01T16:52:22.3433333+00:00
Bruce (SqlWork.com) 60,201 Reputation points