We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Report Server as Azure App Service

Thread ID:

Created:

Updated:

Platform:

Replies:

141624 Dec 21,2018 10:02 AM UTC Dec 24,2018 11:48 AM UTC Report Platform 1
loading
Tags: Report Server
Muhammad Mamoor
Asked On December 21, 2018 10:23 AM UTC

So I decided to give it a go, as we are trying to move away from the VMs that are necessary for Microsoft SSRS. So when I tried the samples, it is successfully loading the report from the sample reporting server (http://reportserver.syncfusion.com:80/) using the following code. But the same code won't load the same report from my server (http://transomsyncfusion.azurewebsites.net:80/) using the same code. By the way, I am using AzureBlobStorage as the store, if that is of any significance.

The error that I get is Load the Report for PDF Writer is on the line reportWriter.Save(fileName, format, httpContext.Response);

        string fileName = null;
        WriterFormat format;
        HttpContext httpContext = System.Web.HttpContext.Current;
        ReportWriter reportWriter = new ReportWriter();
        reportWriter.ReportPath = "/Sample Reports/Company Sales";
                reportWriter.ReportServerUrl = "http://reportserver.syncfusion.com:80/";
                reportWriter.ReportingServer = new ReportingServerExt();
        reportWriter.ReportServerCredential = new System.Net.NetworkCredential("guest", "demo");
                reportWriter.ReportProcessingMode = ProcessingMode.Remote;

                if (writerFormat == "PDF")
                {
                    fileName = "Company Sales.pdf";
                    format = WriterFormat.PDF;
                }
                else if (writerFormat == "Word")
                {
                    fileName = "Company Sales.doc";
                    format = WriterFormat.Word;
                }
                else if (writerFormat == "Html")
                {
                    fileName = "Company Sales.Html";
                    format = WriterFormat.HTML;
                }
                else
                {
                    fileName = "Company Sales.xls";
                    format = WriterFormat.Excel;
                }
                reportWriter.Save(fileName, format, httpContext.Response);

Mageshyadav M [Syncfusion]
Replied On December 24, 2018 11:48 AM UTC

Hi Muhammad,   
 
We have finally found the cause for samples not running on your side. The Azure app has updated the TLS Version to 1.2 recently, in which our previous samples will not work. In order to overcome that, we request you to add the below code in the application startup ‘Global.asax’ file and add its reference ‘using System.Net’ as shown in the below image to run the sample on your side. 
 
C#:  
  
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;  
 
  
 
Regards, 
Mageshyadav.M 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;