I am trying to update an application from Blazor .NET 7 web assembly to a Blazor on .NET 8.0 web application with interactive server rendering. On the web assembly on razor pages I had a lot of HttpClient calls to the server side Web API controllers.
I finally managed to make those calls to work on Blazor interactive server (the Blazor server pages make http calls on the server Web API controllers), but when I uploaded them to the Azure site, I get the following error:
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
System.Security.Authentication.AuthenticationException: Authentication failed because the remote party sent a TLS alert: 'ProtocolVersion'.
System.ComponentModel.Win32Exception (0x80090326): The message received was unexpected or badly formatted.
--- End of inner exception stack trace ---
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
Tls protocol version 1.2 both on code and on azure configuration of course..
Any clues?
Thanks