troubleshooting Question

Basic Authentication, Report Viewer, Web Form, Supply Credentials

Avatar of lyptus
lyptus asked on
DB Reporting Tools
6 Comments1 Solution1466 ViewsLast Modified:
I am useing SQL Server Rporting 2005. I am using an SSL and Basic authentication. I can access the reports through the report manager fine. I have a webpage w/ a report viewer. I am trying to load a report. I'm not sure how to pass the authentication. I don't see anywhere to set the crendtials. The property is read only. I'm using c#. I tried to log into the service first but that doesn't work either. I'm using C#.

    protected ondemand.ReportingService2005 rService;

    protected System.Net.NetworkCredential logonCredetials;

    protected void Page_Load(object sender, EventArgs e)


        if (!IsPostBack)


            this.ReportViewer1.ServerReport.ReportServerUrl = new Uri("https://url/reportserver");

            this.ReportViewer1.ServerReport.ReportPath = "/ReportName";

            rService = new ondemand.ReportingService2005();

            logonCredetials = new NetworkCredential("user", "password");

            rService.Credentials = logonCredetials;




I get this…

The request failed with HTTP status 401: Unauthorized.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros