Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7628909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:41:53+00:00 2026-05-31T05:41:53+00:00

when i run a report with parameter in my asp.net application i see loading

  • 0

when i run a report with parameter in my asp.net application i see loading div to infinity
without any indication of an error (so i dont know how to search about this issue in google)

note1:
i can run the same report directly from report server

note2:
if i removed the parameter it run normally from asp.net page as well as from report server

 protected void Page_Load(object sender, EventArgs e)
        {
            oID = (Int64)Session["OID"];
            ViewReport();
        }


    public void ViewReport()
    {
        string reportServerUrl = ConfigurationManager.AppSettings.Get("ReportServerPath");
        ReportViewer.ServerReport.ReportServerUrl = new System.Uri(reportServerUrl);
        ReportViewer.ServerReport.ReportPath = @"/StoReports/MyReport";

        ReportViewer.ServerReport.SetParameters(new ReportParameter("OID", oID.ToString()));
        ReportViewer.ServerReport.Refresh();
    }

in a function called Sys$WebForms$PageRequestManager$_endPostBack(error, executor, data)

tools sql server Denali , visual studio 2010

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:41:55+00:00Added an answer on May 31, 2026 at 5:41 am

    this article explains the issue in details

    1-Browser makes a GET request to the ASPX page to get the page content
    and a loading indicator for the report.

    2-Browser makes a POST request
    to the ASPX page to get the HTML for the report (this content is in an
    UpdatePanel).

    3-Browser makes GET requests to the HTTP handler to get
    all the images in the report In step 2 the request to get the report
    content runs the ASP.Net page, including any code you have placed in
    the page.

    Why does this matter? code was added to the load event of the page
    that altered the state of the report viewer. The most common example
    I’ve seen is user code calling SetParameters in the load event, though
    there are several methods and properties that will trigger this.
    Changing the parameter values tells the ReportViewer that it needs to
    restart report processing. Effectively, it tells the viewer to return
    to step 1 – put the loading indicator in the browser and restart
    report processing. If you do this during every postback, the viewer
    never successfully completes step 2. It just goes into an infinite
    loop.

    Calling methods like SetParameters isn’t cheap. Each call triggers a
    round trip to the report server. So it’s a call you want to minimize
    anyway. By only calling SetParameters during the initial GET request
    or only when parameter values have actually changed, you can improve
    the performance of your application and break the loop. A simple
    check of IsPostBack before calling SetParameters is usually
    sufficient.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I cannot run NCover. I get the error: NCover couldn't create a coverage report
I am getting the following error when trying to run reports. any thoughts or
I'm having the error one or more parameters required to run the report have
I want to create a report viewer in ASP.NET that presents to the users
I'm looking to take the results of a report run (a PDF file from
I run PHP and MySQL on the same machine, but both report different times.
I have a report in ssrs 2008 r2.I have created two multi-valued parameter on
I have written an application that allows a user to create and run a
I have a report, which has a report parameter with the following properties: hidden
A report needs to be run on multiple sites, each with its own connection

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.