473,394 Members | 1,829 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,394 software developers and data experts.

Time Out Error

Our application is running successfully on production server from last three month. Yesterday we received the error - Timeout Error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Our application is built in asp.net 2.0 and Sql server 2000. We are importing a large set of data in database using transaction object of ado.net. When I ran the same application on test database with same set of files I didn’t received any error. The problem is with sql server on production. We don’t want to set the time out property of command object. Can any one suggest me some solution?
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Jul 2 '07 #1
2 3709
"saurav ajm" wrote in message news:20**********************@gmail.com...
Our application is running successfully on production server from last
three month. Yesterday we received the error - Timeout Error: Timeout
expired. The timeout period elapsed prior to completion of the operation
or the server is not responding. Our application is built in asp.net 2.0
and Sql server 2000. We are importing a large set of data in database
using transaction object of ado.net. When I ran the same application on
test database with same set of files I didn’t received any error. The
problem is with sql server on production. We don’t want to set the time
out property of command object. Can any one suggest me some solution?
Make sure that you are closing all of your SqlConnections. If, under some
circunstances you fail to do a Close (for instance, if under some condition
you return from a method that had opened a connection, and you don't execute
the Close at the end of the method), then you will slowly leak connections.
Those connections do not get returned to the Pool. When this has happened
100 times (default), the next time that you try to open a connection you get
a timeout error, because the system is waiting for a connection to be
returned to the pool and they never get returned. Typically you do not
detect this error on the test environment, because the test process does not
go 100 times through the faulty routine that leaks connections, but you do
get the timeout in production because some other (possibly unrelated) page
accesses are consuming your connections.
Jul 2 '07 #2
Hi,

<saurav ajmwrote in message news:20**********************@gmail.com...
Our application is running successfully on production server from last
three month. Yesterday we received the error - Timeout Error: Timeout
expired. The timeout period elapsed prior to completion of the operation
or the server is not responding. Our application is built in asp.net 2.0
and Sql server 2000. We are importing a large set of data in database
using transaction object of ado.net. When I ran the same application on
test database with same set of files I didn't received any error. The
problem is with sql server on production. We don't want to set the time
out property of command object. Can any one suggest me some solution?

It's not a good idea to import a large dataset using ADO.NET , you should
use SSIS or DTS in this case.
In the same way reproducing this kind of error tend to be difficult as it
depend of the server load among other conditions.
Jul 2 '07 #3

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

Similar topics

18
by: Ken | last post by:
Hi. Can anyone refer me to any articles about the compatibility between c++ polymorphism and real-time programming? I'm currently on a real-time c++ project, and we're having a discussion...
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
4
by: Christaaay | last post by:
I have been using the code below successfully for almost a year. yesterday, I began getting a run time error 6 (overflow). I am using the code in an Access 2000 database. Can anyone help me...
1
by: MLH | last post by:
I want to change my system time date each time an A97 app is started. Here's how I've been doing it. Am looking for a better way. Sure some of you have researched this. Function...
1
by: Mark | last post by:
I have .aspx code-behinds that inherit from the class below. The code runs just fine, but the form designer bombs at design time when trying to view the .aspx page in VS.NET 2003. If I comment...
1
by: Alfonso Morra | last post by:
Hi I'm compiling some code and need to generate some random numbers. To save time, I decided to use the srand, rand and time functions. My code worked (atleast built fine) until I added time.h,...
4
by: HNguyen | last post by:
Hi, I have a Web application in ASP.NET. My Application allows the users upload files into the server after checking their user names and passwords. For each transaction, the Web program will...
15
by: Khurram | last post by:
I have a problem while inserting time value in the datetime Field. I want to Insert only time value in this format (08:15:39) into the SQL Date time Field. I tried to many ways, I can extract...
9
by: ThunderMusic | last post by:
Hi, I'd like to create a compile time error in my class... maybe there's a way already built in in the framework so I can achieve what I want... I have 2 constructors in my class. One of them...
4
by: ahmurad | last post by:
Dear Xperts, In my database table some fault code type records are inserted and the values are like bellows: Error:2/FC:10; 00:15:13 16/03/2009; Error:2/FC:20; 00:15:15 16/03/2009; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.