locked
The request failed with HTTP status 401: Unauthorized RRS feed

  • Question

  • Hi

    I have deployed the SSRS with windows authentication (default) and it is working with Browser when I provide the server credentials.

    But when I try to call the Reporting Service through ReportViewer Control , I'm getting below error-

    The request failed with HTTP status 401: Unauthorized

    I implemented the IReportServerCredentials as mentioned in below 

    https://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.ireportservercredentials.aspx

    Every other sites it a same implementation but it is not working for me.

    I'm using SSRS 2012 and using below code in ASP.NET web site

    try

    {

        repViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;

       repViewer.ServerReport.ReportServerUrl = new Uri("http://<Server Address/ReportServer");

        repViewer.ServerReport.ReportPath = "/UserReports/MarketingReport";

        repViewer.ServerReport.Refresh();

    }

    catch (Exception ex)

    {

        throw ex;

    }

    please help me.

    -shreesh


    Wednesday, April 20, 2016 12:57 PM

Answers

All replies