Reputation: 3668
I have an Azure App Service with Stack General setting ASP.NET v4.7. However, in the web.config target runtime version is 4.5.1.
I have another Azure App Service which hosts a Linux container.
The first one is set to use TLS 1.2. I am initiating requests from .NET App(first) to Linux container(second). When the Second one, Linux container is set to use TLS 1.2 requests fail, but when set to TLS 1.0 requests process successfully.
Has anyone experienced this issue?
Upvotes: 0
Views: 1297
Reputation: 7063
From the post it is tricky to narrow down on your issue but a couple of things you can try.
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
. Try to run. If it works, you'll have the clarity that there is not other issue and you need to switch to right .NET version.<system.web><httpRuntime targetFramework>
in web.config should show the intended version of the .NET.Upvotes: 2