Reporting Services 2017 Report Server: bing maps embeded in report error : the underlying connection was closed: An unexpected error occured on send.

Dejan Milic 41 Reputation points
2022-09-28T09:14:03.11+00:00

We have a report deployed on an "On-Prem" SQL Server 2017 Report Server instance.
The Bing map layer is not displaying when we call the report from the Report Server portal:

245448-image.png

However if we debug the same report in Visual Studio from the same hosts it works:

245467-image.png

We have this same report running just fine on a legacy SharePoint 2010 integrated mode instance:

245494-image.png

We looked in Report Server logs, but nothing obvious caught our intention.

It does not seems to be a httpProxy issue either:

245449-image.png

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,796 questions
Windows Maps
Windows Maps
A Microsoft app that provides voice navigation and turn-by-turn driving, transit, and walking directions.
245 questions
{count} vote

Accepted answer
  1. PN 141 Reputation points
    2022-10-05T12:08:14.003+00:00

    @Dejan Milic @AniyaTang-MSFT @Jane Fleming

    Maps began working in my reports again this morning. To be clear, the only change I have made in the past 24 hours is that I added a file share account in the report server, which should be completely unrelated to this issue.

    The maps looks a bit different. More clear? Perhaps Bing maps was going through an update.


5 additional answers

Sort by: Most helpful
  1. Dejan Milic 41 Reputation points
    2022-09-29T10:26:46.843+00:00

    Hi @AniyaTang-MSFT

    The reports are deployed just fine, It does not look like a server URL issue.

    The server is not running SSL

    245956-image.png

    and the SecureConnectionLevel is set to "0"

    246062-image.png

    Regards,

    Dejan

    1 person found this answer helpful.

  2. Dejan Milic 41 Reputation points
    2022-09-30T12:49:45.95+00:00

    Hi @AniyaTang-MSFT

    The settings were good in the first place, so It did not help.

    However, I'm now getting the same errors as @PN , Although I did not change anything in the settings:

    246521-image.png

    1 person found this answer helpful.

  3. PN 141 Reputation points
    2022-12-13T18:01:22.63+00:00

    I received a quick answer with the work ticket that explains the issue:

    On September 21st we decommissioned TLS 1.0 and TLS 1.1 for HTTPS on our APIs. The change was rolled back on September 29th and we just rolled the changes forward again on December 1st.

    There are two ways to resolve the issue if this is what you believe may be the cause:

    1. Start using TLS 1.2 in your environment
    2. Change your calls to start using HTTP rather than HTTPS

    There should be settings in the application to do this.

    Thanks so much to the Microsoft Maps Support team!

    @Dejan Milic

    1 person found this answer helpful.
    0 comments No comments

  4. AniyaTang-MSFT 12,311 Reputation points Microsoft Vendor
    2022-09-29T02:01:50.893+00:00

    Hi @Dejan Milic
    Can you access the report server on IE? Is the TargetServerURL you deployed correct? Did you configure a TLS connection?

    If everything is correct and you are not running SSL, you can try changing the SecureConnectionLevel in the configuration file.
    The method is as follows:

    1. Find the rsreportserver.config file, it may be in such a path: C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer;
    2. Copy a backup of the file;
    3. Then open the original file, find SecureConnectionLevel, and set this value to 0;
    4. After saving, restart SSRS to check whether the file can be deployed.

    For more details, you can refer to this link: the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send-ssrs-2008.
    Best regards,
    Aniya