none
Accessing SSRS 2014 ReportViewer version 10 - 401 Unauthorized Error RRS feed

  • Question

  • Been searching the net for 3 days and still not able to find the answer. I'm getting an error on 401, which is Unauthorized.

    Here's my code

            var report = new ReportViewer();
    
            report.ProcessingMode = ProcessingMode.Remote;
            report.ServerReport.ReportServerCredentials.NetworkCredentials = new NetworkCredential("username", "password", "domain");
            report.ServerReport.ReportServerUrl = new Uri(uri);
            report.ServerReport.ReportPath = reportPath;
            report.ServerReport.SetParameters(reportParam);
            return report;

    I've seen setting report.ServerReport.ReportServerCredentials = customcredentials but getting error on ReportServerCredentials is readonly.

    Some would advise create a ReportServerCredentials class etc,etc,etc. ended up with same result.

    Thanks!



    Wednesday, February 14, 2018 1:14 PM