Wednesday, March 28, 2012

ReportViewer control fails with forms authentication

I am using forms authentication with reporting services. When I use ReportViewer control calls like:

ReportViewer1.ServerReport.ReportServerUrl = new Uri(http://localhost/reportserver);

ReportViewer1.ServerReport.ReportPath = "/Reports/report1";

ReportViewer1.ServerReport.Refresh();

in a web app

I get the following error:

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/ReportServer/logon.aspx?ReturnUrl=%2freportserver%2fReportExecution2005.asmx">here</a>.</h2>
</body></html>

Anyone knows how to resolve this issue?

Did you implement IReportServerCredentials.GetFormsCredentials?|||

hi ! , we have the same issue ,

Our SSRS 2005 report server is configured to use a custom security extension, it is working fine. We have no problem login into Report Manager (http://servername/reports) and report server (http://servername/reportserver). Now we are trying to use the Reportviewer control from VS 2005.

When requesting a report using the Web viewer control in our web application we get the following error message.

  • The request failed with the error message: -- <html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fReportExecution2005.asmx">here</a>.</h2> </body></html> --.
  • No comments:

    Post a Comment