locked
Getting Report from Report Server in web Application RRS feed

  • Question

  • User946142141 posted

    I connect to report server from web application to report server using the below code

            string ReportPath = cmbreport.Value.ToString();
            ReportViewer2.ProcessingMode = ProcessingMode.Remote;
            ServerReport serverReport = ReportViewer2.ServerReport;
            serverReport.ReportServerUrl = new Uri("http://sobana/reportserver_sqlexpress");
            serverReport.ReportPath = "/" + ReportPath;

    Iam getting the report also.But iam not using Credentials(username and password).

    Is it proper way??

    Thursday, October 18, 2012 9:45 AM

Answers

  • User-8475372 posted

    Dear User, 

    There is a category in your report server which states the permissions to all the users. If you give 'Everyone' as an item in the users access list, then without giving credentials you can access this report. However, it is not a good practice. Since anyone can access these reports (no point in having security). Always have a service account and use those credentials for accessing the reports from your .NET code. 

    Mark As Answer if it Helps ! 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, October 19, 2012 2:08 AM