Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

ReportViewer returns "The request failed with an empty response."

$
0
0

Hi

I use report viewer in my asp.net mvc app as below :

 ReportViewer viewer = new ReportViewer
            {
                ProcessingMode = ProcessingMode.Remote,
                //AsyncRendering = true,
                //EnableTheming = true,
                ShowCredentialPrompts = false,
            };
            viewer.ServerReport.ReportServerUrl = new Uri(ConfigurationManager.AppSettings["ReportserverUrl"]);
            viewer.ServerReport.ReportPath = $"/report/{reportName}";
            //viewer.ProcessingMode = ProcessingMode.Remote;
            viewer.ServerReport.ReportServerCredentials.NetworkCredentials=new NetworkCredential("888888","8888", "888888");

            ReportParameter[] param = new ReportParameter[1];
            param[0] = new ReportParameter("UserId", userId.ToString());

           
            viewer.ShowParameterPrompts = false;
            viewer.ServerReport.SetParameters(param);
            
            viewer.ServerReport.Refresh();

The report server is located in other location with different IP. But when the code reaches "SetParameters" it throws the following error :

"The request failed with an empty response."

I checked the SSRS logs but could not find anything. I tried SSRs web portal and could view the report. 

 I changed NetworkCredential to some wrong values and got Unauthorized error, So I don`t think there would be a problem with authentication. 

Would you guide me ? 


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>