473,386 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Timeout expired using the SqlDataSource WebControl, ASP.NET 2.0

When I call databind on my gridview which uses a SqlDataSource as its
DataSourceID, after 30 seconds I get the error "Timeout expired. The
timeout period elapsed prior to completion of the operation or the
server is not responding."

I have tried the Connect/Connection TimeOut property in my connection
string and have used values between 0 and 600 and it has had no affect.
I can run the stored procedure through Query Analyzer. It does take
longer than 30 seconds to run. The Query timeout on the sql server is
set to 600 seconds.

If I modify my stored procedure to return a single row my web page
works fine. I know I am connecting ok but I don't see where to control
the execution/query timeout for the SqlDataSource web control.
>From reading other posts it appears I may have to set the
CommandTimeout property of the underlying SqlCommand object but how can
you access the SqlCommand object that the SqlDataSource web control is
using?

Ryan

Oct 10 '06 #1
1 6834
Hi Ryan, i have the same problem.

Have you found a solution meantime?
I have tried the IIS timeout proprieties also, but w/o any result.
I'm driving crazy.

Do I have to rewrite all sqldatasource with ado.net connection and
datasources?
Any suggestion is appreciated.

rouge.
ry*****@gmail.com ha scritto:
When I call databind on my gridview which uses a SqlDataSource as its
DataSourceID, after 30 seconds I get the error "Timeout expired. The
timeout period elapsed prior to completion of the operation or the
server is not responding."

I have tried the Connect/Connection TimeOut property in my connection
string and have used values between 0 and 600 and it has had no affect.
I can run the stored procedure through Query Analyzer. It does take
longer than 30 seconds to run. The Query timeout on the sql server is
set to 600 seconds.

If I modify my stored procedure to return a single row my web page
works fine. I know I am connecting ok but I don't see where to control
the execution/query timeout for the SqlDataSource web control.
From reading other posts it appears I may have to set the
CommandTimeout property of the underlying SqlCommand object but how can
you access the SqlCommand object that the SqlDataSource web control is
using?

Ryan
Oct 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Silvia | last post by:
I have a application web and when execute this for a long time generated this error: Server Error in '/RAIMServer' Application. -----------------------------------------------------------...
5
by: Jason | last post by:
Hi all I get the following error when executing a rather intense stored procedure from an ASPX page. I have tried: - Increasing timeouts on IIS 5.0 (all areas that even mention timeout) - use...
2
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET ...
3
by: Nils Magnus Englund | last post by:
Hi, I've made a HttpModule which deals with user authentication. On the first request in a users session, it fetches data from a SQL Server using the following code: using (SqlConnection...
4
by: VB Programmer | last post by:
When I run my ASP.NET 2.0 web app on my dev machine it works perfect. When I precomile it to my web deployment project and then copy the debug files to my web server I get this problem when trying...
1
by: Ron | last post by:
Hi, I had a stored procedure on SQL 2000 server to run calculation with large amount of data. When I called this stored procedure via System.Data.SqlClient.SqlCommand on production, i got error...
7
by: dadocsis | last post by:
I have a custom VB.net application that runs a query against an SQL server that takes more than 3 minutes. Right now after 3 minutes it times out. So far after doing my research I have changed the...
2
by: John Kotuby | last post by:
Hi all, I have set up a page with a Repeater and a SQLDatasource control, the data control suggested by online Help for use with the Repeater. I am getting Timeout Expired after 30 seconds. I...
1
by: Scorpion657 | last post by:
Hey I really need help. I have a Website coded using ASP.NET and VB and for some reason, i'm getting the following error when I try to upload or access a large file which is stored in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.