Results 1 to 9 of 9

Thread: Application giving TLS Error

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2004
    Location
    India
    Posts
    517

    Post 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

  2. #2
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,458

    Re: Application giving TLS Error


  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2004
    Location
    India
    Posts
    517

    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 ?

  4. #4
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,834

    Re: Application giving TLS Error

    Quote Originally Posted by greatchap View Post
    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!

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2004
    Location
    India
    Posts
    517

    Re: Application giving TLS Error

    The product is made in .NET 3.5 SP1. I don't think I can up the framework.

  6. #6
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,834

    Re: Application giving TLS Error

    Quote Originally Posted by greatchap View Post
    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!

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2004
    Location
    India
    Posts
    517

    Re: Application giving TLS Error

    The code won't work if I go for 4.5 or higher.

  8. #8
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,458

    Re: Application giving TLS Error

    Quote Originally Posted by greatchap View Post
    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.

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2004
    Location
    India
    Posts
    517

    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
  •  



Click Here to Expand Forum to Full Width