Click here to Skip to main content
15,943,148 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am generating large report using ironpdf.

The issue is that my web page is going to idle after loading around 3 to 5 minutes.

In local it is working fine and it may take to 3 to 5 minutes to generate report and save as pdf, but in live server i am getting this idle issu


What I have tried:

I tried to put some code in web config, but no idea about what is the exact issue.
Updated 13-Aug-23 20:53pm
Andre Oosthuizen 14-Aug-23 4:04am    
Show a progress bar or some kind of animation so the user will know that something is happening while the file downloads.

Keep in mind that the interaction on your localhost will always be faster as a server connection especially where connection speed plays a role.

1 solution

We can't directly help - we have no way to examine your system(s) and work out what might be causing the problem.

But ... you mention of a "large pdf" implies that the document generation is taking too much time and if you are doing that in a page load handler on the server, then your client will see nothing until the document is complete and the page data can be rendered.

I'd suggest you think about pre-generation if you can, or investigate if you can move the long running task to a background thread which later updates the client page when completed.
Share this answer
Member 15709759 14-Aug-23 4:24am    
Thank you for the reply.

can you please go through the below code and it is the right way to task to a background thread or not?

protected void btn_report_Click(object sender, EventArgs e)
if (!string.IsNullOrEmpty(ViewState["ord_id"] as string))
int o_id = Convert.ToInt32(ViewState["ord_id"]);
catch (Exception)

public async Task bind_data_and_pdf(int ord_id)
await Task.Run(() =>
//here is my report generation code

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900