We Have a MVC Application and a Windows Forms Application that targets following Frameworks
MVC Application
Winforms
recently we disabled the TLS 1.1 and TLS 1.0 on all server and client machines.
After this change both applications stopped working and we noticed MVC application had an incorrect runtime specified in the web.config after the upgrade. So we made the following change the to the MVC app in order to get it to work.
taget framework from 4.5 to
Now the MVC application works as expected but the windows forms client does not
it throws the following exception.
"The underlying connection was closed: An unexpected error occurred on a receive."
according to the following POST we don't have to do anything since the windows application is already running on 4.6.2.
or do we have to hard-code the protocol as mention in one of the answers?
Appreciate if someone can let us know what needs to be changed in the Windows application for it to work with TLS 1.2. Or though it's says 4.6.2 can it be targeting a different runtime. like the MVC application?
Update:
When we Run the WinForms Application through Visual Studio the and display ServicePointManager.SecurityProtocol it shows it as System.Default.
But when it's deployed the ServicePointManager.SecurityProtocol shows as its using ssl3