.Net SDK - Receiving error : The underlying connection was closed:

  • 1
  • Problem
  • Updated 6 months ago
Hello,

I have integrated Ava .Net SDK to validate address and calculate tax, earlier it was working properly and now i getting below error.


ex.StackTrace :    at Avalara.AvaTax.RestClient.AvaTaxClient.RestCall[T](String verb, AvaTaxPath relativePath, Object content)
   at Avalara.AvaTax.RestClient.AvaTaxClient.ResolveAddress(String line1, String line2, String line3, String city, String region, String postalCode, String country, Nullable`1 textCase, Nullable`1 latitude, Nullable`1 longitude)

ex.Message : An error occurred while sending the request.
ex.InnerException : System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
   at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
   at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
   at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)

Could you please help me here.

Thanks,
Amit Singh
Photo of Amit

Amit

  • 3 Posts
  • 0 Reply Likes

Posted 6 months ago

  • 1
Photo of Katina

Katina, Official Rep

  • 280 Posts
  • 28 Reply Likes
Good day.

I look at look on our end and it doesn't appear that we've made any changes to our SSL certificates since October of last year, so it doesn't look like this is due to a chance on our end.

Are you still encountering the issue?