none
The underlying connection was closed: An unexpected error occurred on a send.

    Question

  • Fala ae galera.

    tive problemas ao publicar meu primeiro report, exibe o seguinte erro: The underlying connection was closed: An unexpected error occurred on a send.

    Configurações IIS

    

    Friday, January 31, 2014 2:08 PM

Answers

  • Hello,

    Based on the error message, the issue may be related to the “SecureConnectionLevel” in the RSReportServer.config file. When we use HTTP protocol, the value of the “SecureConnectionLevel” attribute should be 0. Usually, we change the value to “1” or “2” only when we configure the Report Server for Secure Sockets Layer (SSL) connections.
    Reference: http://msdn.microsoft.com/en-us/library/ms157273(v=sql.105).aspx 

    Please refer to the following steps try to resolve the issue:
    1. Use Notepad to open the RSReportServer.config. By default, in SSRS 2012, it is located in: C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer
    (Note: Please backup the file before modify it.)
    2. Search for “SecureConnectionLevel” and make sure its value is set to 0. It looks like this:
    <Add Key="SecureConnectionLevel" Value="0"/>

    There is a blog about “The underlying connection was closed…" error message, you can refer to it.
    http://blogs.msdn.com/b/engelsr/archive/2005/11/29/the-underlying-connection-was-closed.aspx

    Regards,
    Alisa Tang


    Alisa Tang
    TechNet Community Support

    Monday, February 3, 2014 8:33 AM
    Moderator

All replies

  • Hello,

    Based on the error message, the issue may be related to the “SecureConnectionLevel” in the RSReportServer.config file. When we use HTTP protocol, the value of the “SecureConnectionLevel” attribute should be 0. Usually, we change the value to “1” or “2” only when we configure the Report Server for Secure Sockets Layer (SSL) connections.
    Reference: http://msdn.microsoft.com/en-us/library/ms157273(v=sql.105).aspx 

    Please refer to the following steps try to resolve the issue:
    1. Use Notepad to open the RSReportServer.config. By default, in SSRS 2012, it is located in: C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer
    (Note: Please backup the file before modify it.)
    2. Search for “SecureConnectionLevel” and make sure its value is set to 0. It looks like this:
    <Add Key="SecureConnectionLevel" Value="0"/>

    There is a blog about “The underlying connection was closed…" error message, you can refer to it.
    http://blogs.msdn.com/b/engelsr/archive/2005/11/29/the-underlying-connection-was-closed.aspx

    Regards,
    Alisa Tang


    Alisa Tang
    TechNet Community Support

    Monday, February 3, 2014 8:33 AM
    Moderator
  • Hi Alisa,

    thank you very much...

    now that's ruining. ok

    bye

    Tuesday, February 4, 2014 12:16 PM
  • Yes, this worked for me, too!!  Thank you so much!
    Tuesday, December 30, 2014 6:34 PM
  • This solution worked for me as well.
    Thursday, May 5, 2016 10:50 AM
  • Hello,

    Yes it works with the solution mentioned above..
    But if I am using TLS as a communication protocol,

    do i need to change SecureConnectionLevel setting in config file??
    or it is for SSL protocol only.. ?

    Tuesday, February 6, 2018 5:02 AM
  • even I am facing this issue after changing the TLS from 1.0 to 1.2

    any suggestions around this?

    Tuesday, April 24, 2018 3:35 AM