Fixing Crystal Reports.NET Browser Timout due to Large Recordset.

Posted on 2006-04-27
Last Modified: 2008-02-01
I have a Crystal Reports.NET web app. I'm able to create a report when I query a database and return only a small number of rows but when I change the query to include a large number of rows the browser times out.

I am using Visual Studio 2003 and the Crystal Reports.NET version that comes along with that install.

Does anybody know how to get around the timeout problem?

I have already tried increasing the execution timout in the web.config file to no avail.

 <httpRuntime maxRequestLength="24000" useFullyQualifiedRedirectUrl="false" executionTimeout="360"/>

Any advice would be greatly appreicated.

Question by:FastEddie___
    1 Comment

    Accepted Solution

    I found the answer. Can I give the points to myself   :-)

    You have to set the sql data adapter's timout in the query.

    SqlDataAdapter da = new SqlDataAdapter ( cmdObj ) ;
    DataSet dataSet = new DataSet();
    da.SelectCommand.CommandTimeout = 0;

    The zero means unlimited wait for execution.

    Nice huh...


    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
    There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now