Forum Discussion

JagadishNallami's avatar
JagadishNallami
Frequent Visitor
1 year ago
Solved

Underlying connection was closed error in SSRS when accessing a report

Hi There,   I am using SSRS reports in my Windows application using Report viewer in Winforms. I am getting the below exception while trying to get the report.   Exception message: The underlying...
  • AmiraBedh's avatar
    1 year ago

    I think there are some network issues between your client machine and your SSRS server. You can use tools like ping or tracert to diagnose network connectivity problems.

    If your SSRS server is configured to use HTTPS, the client should be the correct TLS/SSL version. Older versions of the .NET Framework may not support newer TLS versions by default. You can enforce the use of a specific TLS version in your application by adding the following code:

    System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

    Genreally, if the SSRS server is under heavy load or running out of memory, it might close connections unexpectedly.