Simple Web Page To Display SSRS Report From Everleap Report Server Failing

Discussion in 'General troubleshooting' started by Randall, Dec 14, 2018.

  1. Hi, happy holidays (I hope?) !

    My Everleap accounts shows that the reportserver is:

    Report Server URL:
    Root Path: /RS_4325/reports/

    So, I've deployed a simple report to the URL + folder where my Everleap account advises:
    TargetReportFolder: /RS_4325/reports/

    Based on this information, in Visual Studio, I create a simple web page as follows, to access the report:

    <html xmlns="">
    <head runat="server">
    <form id="form1" runat="server">
    <asp:scriptmanager runat="server"></asp:scriptmanager>
    <rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote">
    <ServerReport ReportPath="/RS_4325/reports/" ReportServerUrl="" />

    And get the following error message:

    The request failed with the error message: -- <head><title>Document Moved</title></head> <body><h1>Object Moved</h1>This document may be found <a HREF="">here</a></body>

    I then changed the ReportServerURL to, and reran and get the following:

    • The request failed with HTTP status 401: Unauthorized.
    Any ideas on how to get this thing to show up in my web page? Am I close? Thank!
  2. To update, I've also added code behind to the same webpage as follows:

    protected void Page_Init(object sender, EventArgs e)
    if (!Page.IsPostBack)
    // Set the processing mode for the ReportViewer to Remote
    ReportViewer1.ProcessingMode = ProcessingMode.Remote;
    ServerReport serverReport = ReportViewer1.ServerReport;
    ReportViewer1.ServerReport.ReportServerCredentials = new ReportServerNetworkCredentials("mysetupUserId", "password");//"NYCity1975");
    // Set the report server URL and report path
    serverReport.ReportServerUrl =
    new Uri("");
    serverReport.ReportPath =
    // Create the sales order number report parameter
    ReportParameter N = new ReportParameter();
    N.Name = "param1Name";
    // Create the sales order number report parameter
    ReportParameter metric = new ReportParameter();
    metric.Name = "Param2Name";
    // Create the sales order number report parameter
    ReportParameter cityList = new ReportParameter();
    cityList.Name = "Param3Name";
    // Set the report parameters for the report
    new ReportParameter[] { param1Name,Param2Name,Param3Name });


    ============== ReportServerNetworkCredentials class created this way to pass in report server credentials ==================

    public sealed class ReportServerNetworkCredentials : IReportServerCredentials
    #region IReportServerCredentials Members
    private string username, password;
    public ReportServerNetworkCredentials(string username, string password)
    this.username = username;
    this.password = password;
    public bool GetFormsCredentials(out System.Net.Cookie authCookie, out string userName, out string password, out string authority)
    //throw new NotImplementedException();
    userName = password = authority = null;
    // The cookie name is specified in the <forms> element in Web.config (.ASPXAUTH by default)
    HttpCookie cookie = HttpContext.Current.Request.Cookies[".ASPXAUTH"];
    if (cookie == null)
    authCookie = null;
    return false;
    Cookie netCookie = new Cookie(cookie.Name, cookie.Value);
    if (cookie.Domain == null)
    netCookie.Domain = HttpContext.Current.Request.ServerVariables["SERVER_NAME"].ToUpper();
    netCookie.Expires = cookie.Expires;
    netCookie.Path = cookie.Path;
    netCookie.Secure = cookie.Secure;
    authCookie = netCookie;
    return true;
    public WindowsIdentity ImpersonationUser
    return null;
    public System.Net.ICredentials NetworkCredentials
    return new System.Net.NetworkCredential(this.username, this.password);
    WindowsIdentity IReportServerCredentials.ImpersonationUser
    return null;

    And when I run it, the following error message appears:

    • The request failed with HTTP status 403: Forbidden.
    Any ideas?

Share This Page