Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
While adding service reference for a web service on Windows server 2008 R2, I am facing following error. "The underlying connection was closed: An unexpected error occurred on a send. Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host." This web service recently moved to TLS 1.2 and does not supports below versions of TLS.


What I have tried:

I tried updating registry settings:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001
Posted
Comments
Richard Deeming 30-Mar-17 10:55am    
Which version of .NET are you using? TLS1.2 support was added in .NET 4.5, so if you're using anything earlier than that, it's not going to work.
Member 13073319 31-Mar-17 1:40am    
I am able to add service reference on VS 2010 on .net framework 4.0 on my local machine, but unable to do it on Windows Server 2008 R2.

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