A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
RemoteCertificateValidationCallback is triggered multiple times
Hi All,
We have a WPF application built on .Net Framework 4.8. We are using HTTPs protocol to connect to a device to execute a few commands. We use the RemoteCertificateValidationCallback for validating the certificate.
Initially, we open an Https connection to the device and validate the certificate using RemoteCertificateValidationCallback method.
Once the initial connection is established, we send out a series of commands, one at a time to device.
But the problem that we are facing is that this callback method is being called each time a new command is executed.
We want the callback method to be called only once when we open the connection. All other times we want the same connection to be used without calling the callback method.
We have attached the code that is being usedHTTPs_Connection.txt.
Can anyone please help us on this?
Any help is appreciated!!
Thank you in advance!!
Developer technologies | Windows Presentation Foundation
Developer technologies | 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.