-
Sep 10th, 2020, 11:49 PM
#1
Thread Starter
Fanatic Member
Application giving TLS Error
Hello,
My application used HTTP requests to download files from my server. It seems my server is no longer supporting connections below TLS 1.2
Since my application is written in .NET FRAMEWORK 3.5 SP1 it uses the older TLS. I do have code that allows it to support TLS 1.2 but for that I have to give an update.
Is it possible that by some patch it uses default TLS 1.2 without making any changes in the program ?
Regards,
GR
-
Sep 11th, 2020, 01:27 AM
#2
Re: Application giving TLS Error
-
Sep 11th, 2020, 04:41 AM
#3
Thread Starter
Fanatic Member
Re: Application giving TLS Error
The above is not helping. I added code for TLS 1.2 in the code.
Code:
Friend Const _Tls12 As SslProtocols = DirectCast(&HC00, SslProtocols)
Friend Const Tls12 As SecurityProtocolType = DirectCast(_Tls12, SecurityProtocolType)
ServicePointManager.SecurityProtocol = Tls12
However its working in Windows 10 computers but not in Windows 8 or 7. There it gives error "the requested security protocol is not supported".
What to do so that it works in Windows 7 & 8 ?
-
Sep 11th, 2020, 05:52 AM
#4
Re: Application giving TLS Error
Originally Posted by greatchap
The above is not helping. I added code for TLS 1.2 in the code.
Code:
Friend Const _Tls12 As SslProtocols = DirectCast(&HC00, SslProtocols)
Friend Const Tls12 As SecurityProtocolType = DirectCast(_Tls12, SecurityProtocolType)
ServicePointManager.SecurityProtocol = Tls12
However its working in Windows 10 computers but not in Windows 8 or 7. There it gives error "the requested security protocol is not supported".
What to do so that it works in Windows 7 & 8 ?
Can you up the framework on the other PCs?
https://stackoverflow.com/questions/...ported-c-sharp
Please remember next time...elections matter!
-
Sep 11th, 2020, 07:23 AM
#5
Thread Starter
Fanatic Member
Re: Application giving TLS Error
The product is made in .NET 3.5 SP1. I don't think I can up the framework.
-
Sep 11th, 2020, 07:29 AM
#6
Re: Application giving TLS Error
Originally Posted by greatchap
The product is made in .NET 3.5 SP1. I don't think I can up the framework.
I'm not a guru by any means but why not? Or...just try it.
Please remember next time...elections matter!
-
Sep 11th, 2020, 11:17 AM
#7
Thread Starter
Fanatic Member
Re: Application giving TLS Error
The code won't work if I go for 4.5 or higher.
-
Sep 11th, 2020, 11:59 AM
#8
Re: Application giving TLS Error
Originally Posted by greatchap
The code won't work if I go for 4.5 or higher.
Have you tried it? If so are there any obvious compile errors or runtime issues? Might be easier to troubleshoot an upgrade than try to get TLS 1.2 running if the existing environment isn't supported.
-
Sep 11th, 2020, 09:11 PM
#9
Thread Starter
Fanatic Member
Re: Application giving TLS Error
I tried it and it did not work. The app is complex so its tricky.
I managed to run it somehow in Windows 7. It is already running in Windows 10. It is not working in Windows 8.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|