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…
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…
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…
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…
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…
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…
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.…
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
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…
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).…
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…
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…
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…
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…
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…
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…
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…
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#…
.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…
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,…