Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,
Good morning.. Now am working an application which is using API for payment. Current version of .net framework is 4.0. I couldn't upgrade my framework. But i have to use tls1.1 here. when i using tls1.1 it throws error."System.net.SecurityProtocolType" does not contain the definition for Tls11

Is there any way for achieve above requirement.


Thanks,
DK

What I have tried:

Due to protection level i cant change registry.
Posted
Updated 7-Mar-17 3:04am
v2

It would appear from this: SslProtocols Enumeration (System.Security.Authentication)[^] that .NET V4.0 only supports TLS 1.0 - you would need to upgrade the framework to 4.5 to use 1.1

Either talk to your management, or the authors of the API.
 
Share this answer
 
Comments
Richard Deeming 7-Mar-17 9:02am    
Snap! :)
OriginalGriff 7-Mar-17 9:14am    
:DOnly by 60 seconds or less!
Dhineshkumar Velmayil 16-Mar-17 6:39am    
Thanks for your reply, is there any issue happened in application if we upgrade the framework only.
Dhineshkumar Velmayil 24-Mar-17 4:14am    
Hi All,
Thanks for your support. But now my team wants to upgrade 4.0 to 4.6. i have checked with websites. 4.0 to 4.5 i don't see any major impact. But i need some valuable suggestions regards this 4.0 to 4.6 upgrade process. Kindly tell your suggestions.

Thanks,
DK
No, .NET Framework 4.0 does not support TLS 1.1; you'll need to upgrade to at least .NET 4.5 to support that protocol.

Look at the documentation: SslProtocols Enumeration (System.Security.Authentication)[^] - support for TLS 1.1 and 1.2 was added in v4.5 of the framework.
 
Share this answer
 
Comments
Dhineshkumar Velmayil 16-Mar-17 6:39am    
Thanks for your reply, is there any issue happened in application if we upgrade the framework only.
OriginalGriff 16-Mar-17 6:57am    
Shouldn't be - I don't think they removed anything between the two versions. Added some stuff, but I've not had a problem going up versions so far.
Dhineshkumar Velmayil 16-Mar-17 8:54am    
Thank you guys...
DK
Dhineshkumar Velmayil 24-Mar-17 4:14am    
Hi All,
Thanks for your support. But now my team wants to upgrade 4.0 to 4.6. i have checked with websites. 4.0 to 4.5 i don't see any major impact. But i need some valuable suggestions regards this 4.0 to 4.6 upgrade process. Kindly tell your suggestions.

Thanks,
DK

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900