0

I have a project originally developed in VS2010 .NET 4. I need to upgrade it to use TLS 1.2 so I have copied it to my Windows 10 machine running VS1013. I set the framework to 4.5.2 and recompile with no issues.

When I try to Update the Service Reference, I receive the “Could not create SSL/TLS secure channel” error. I am able to see the wsdl contents in a browser and I have installed the certificate under Trusted Authority.

If I try to add a New Service Reference in this, and a different project, I get the same error message.

I read this question “Could not create SSL/TLS secure channel” when adding service reference on WIndows 10 but that did not solve the problem though I have not restarted my machine as the answer said I didn't need to.

I am stuck trying to figure out where the actual issue lies.

TLS 1.2 is enabled in IE Internet Settings.

Thank you

Jon
  • 116
  • 4
  • You need to upgrade to .NET 4.6 to make this work or force .NET via registry as mentioned here [Update .NET web service to use TLS 1.2](https://stackoverflow.com/q/45382254/205233) – Filburt Aug 07 '18 at 16:41
  • @Filburt This is what confuses me. I don't understand why I need to upgrade to 4.6 in order to ADD a reference. I can understand doing this when running the application, but the very act of adding or updating needs the newer framework? – Jon Aug 07 '18 at 17:27
  • Just a vague guess but VS seems to employ the projects .NET version to configure and create the service reference. – Filburt Aug 07 '18 at 18:34
  • If you want to get to the bottom of this you could use ProcMon to find out which version of SvcUtil.exe Visual Studio calls depending on the selected .NET framework. – Filburt Aug 07 '18 at 18:41
  • I ended up installing VS 2017 Community edition and that solved my problem. I opened the VS 2013 project in 2017, recompiled just to make sure and then Updated the Reference and did not receive the error message. The framework was left at 4.5.2 so I don't think that was the real issue, @Filburt but I do appreciate all the suggestions. I also noticed that Windows 10 has framework 4.7 installed, that is what shows when I checked the Add or Remove Windows Features. – Jon Aug 07 '18 at 22:35

0 Answers0