We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Query Times out on aspx page

Carla Romere
Carla Romere asked
on
Medium Priority
632 Views
Last Modified: 2012-05-06
We have an aspx page that requests a date range and then runs a query that's specified in the select statement within the aspx page. When I run the query directly from sql server, the results are instantaneous. However, when I run the same date range from the aspx page, we get this error:

Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

We've tried modifying the timeout settings in the machine.config file as well as in the web.config file, but it still times out after 25-30 seconds - even though the timeout was at one time set to 180 seconds.

What else can I check to get this query to run from the web page? It seems to do okay with a date range for less than one week, but much more than that is when it times out. We need to be able to run this query for a month and possibly even a year at a time.
<httpRuntime enable="true" executionTimeout = "360" />

Open in new window

Comment
Watch Question

Write a SP to run the query and call the SP from the front-end.  Just give it a try.
Director of Information Technology
Commented:
Well, as it turns out, it all had to do with the date format as it was entered into the text box. Now I'm working on putting validation in place for that field and have started a new question for that.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.