Category ".net"

Wrong Issuer in ClaimsIdentity on Itfoxtec binding

Our web api gets the SAML response from the Idp, and when we run the following code: var binding = new Saml2PostBinding(); var saml2AuthnResponse = new Saml2Aut

Why is calling SslStream.AuthenticateAsServer and SslStream.AuthenticateAsClient with the same certificate in the same process not supported?

I recently ran into an issue when converting socket communication to use System.Net.Security.SslStream instead of NetworkStream. This conversion was targeting

ASP.NET Core 6: How to intercept all incoming requests to call an external service

I am planning to build a micro frontend to intercept and handle all incoming requests just calling an external service that will render the html that the micro

Tuple return dynamic in c# while passing parameter as dynamic

As per the image showing CheckDynamic has two methods which has different return type but still allow to return from one to another and allowing to build. Shoul

Instantiation of User Controls dissapearing on InitalizeComponent() when modifiyng Form

Hi everyone and thank you in advance. I have created a User Control named PanelOption that is a panel with a CheckBox and a TextBox, and these are inside a Flow

Overflow operation when compiling using AnyCPU

I have a legacy solution written in VB.NET. It writes to a DB2 database using ODBC. I have a Textbox that is filled with a numeric value then I use ToString in

Blazor Repeatable EventCallback for Menu Item

I am working on a repeatable "Card" component that has a list of menu items and actions that this menu can take. However I cannot get the functionality to work

Dotnet RabbitMq Create queue dynamically

For the RabbitMq message broker system that I will use in my project that I developed in the .Net 5 environment; I have 10000 messages and I want each queue to

VBScript object.GetInfo() returning attribute names different from .NET DirectorySearcher

I have been tasked with writing a C# replacement for a VBScript process that gets a list of all Active Directory user accounts with various object attributes. T

Prevent authentication bypass via response manipulation with ASP.NET Core Identity implementation

Web application has asp.net core identity implementation, in security testing of our application vulnerability is found-authentication bypass via response manip

Migrate Azure Devops Artifacts between organizations

I am trying to migrate (clone) an Azure Devops project to another project / organization. I successfully cloned the repos migrated the work items using Azure De

Run a different installer with my ClickOnce installer

I was searching about how to do this but no avail. I have a Winforms application and published it by mean of ClickOnce. It works, however, that application uses

Difference between .NET Framework, .NET Standard, .NET Core and .NET 5

I built a C# application, my target framework was .NET Framework 4.72. While I used TDengine C# connector, and its target framework is .NET Standard 2.1 and .NE

Automapper - Map setup from collection<double> failing

I have a Automapper setup that was working on the v10 version but since i updated it to the latest v11, it wont work anymore. I have no clue what could be the i

Amazon.Runtime.AmazonServiceException: Unable to get IAM security credentials from EC2 Instance Metadata Service

I'm using .net6 and used docker to deploy into azure but in production, I got the error "Unable to get IAM security credentials from EC2 Instance Metadata Servi

How to use the Monaco editor inside a Windows Forms application?

I have a windows form app (.net framework) and I want to use Monaco editor inside it. Scouring the internet does the provide much help and stackoverflow does no

What is a NullReferenceException, and how do I fix it?

I have some code and when it executes, it throws a NullReferenceException, saying: Object reference not set to an instance of an object.

How to validate Azure Blob Storage Shared Access Signature (SAS) URL?

My application allows users to enter an Azure Blob Storage SAS URL. How would I go about validating it? I'm using the Azure Storage Blobs client library, and th

Registering Class Settings into Azure Function App via Dependency Injection

I'm in the process of upgrading one of our Azure Function Apps from .NET Core 3.1 to .NET 6. As a result, I need to implement dependency injection. Our project

Best practice to manage entities values and value changing events

Little introduction: we have a complex entity and overgrown business logic related to it. With various fields that we can change and fields that updates from ex