?
Solved

Very complex data operation leads to HTTP timeout and does not complete..

Posted on 2008-10-04
5
Medium Priority
?
294 Views
Last Modified: 2010-04-14
Hi I am using VB.net 2003 asp.net 1.1 doing web application on dedicated Windows 2003 server.

One thing in admin web app does very complex thing...

First gets list of all people in database and then needs to update them one at a time.  One field needs to be updated in every persons row - it is a point count and depending on how they answered a questionairre they get points added to their account.  So i have SP that selects all customers, then it checks them one by one and awards points...

The problem is that the web page times out HTTP timout does not finish.


I also have same exact problem when I pull list of all customers to send out email blast.
It gets all customers and compares them agains do not email list.  And then emails the person if not on the do not email list.  Problem is there are 100,000 people and it times out and does not email everyone.

Using  MS Sql 2005
VB.net 2003  asp.net
(calling sql sp's)

How can I make it not to time out?
0
Comment
Question by:hagoog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 60

Accepted Solution

by:
Kevin Cross earned 800 total points
ID: 22642256
Try adding this to your web.config:
<system.web>
    <httpRuntime executionTimeout="1000"/>
    <!-- other configuration here -->
</system.web>

Open in new window

0
 
LVL 2

Assisted Solution

by:madivad2
madivad2 earned 400 total points
ID: 22642257
I played with this some time ago, and can't remember exactly where, but I believe in the web.config file under the "forms" tag you can set a timeout. If it is just the case your operation is taking too long, I think that should fix it.

This could also be an issue with the IIS server which can override the below setting. Try it and see how you go
<configuration>
 <system.web>
  ...
  <authentication mode="Forms">
   <forms name="MyForm"
          loginUrl="~.Login.aspx"
          protection="All"
          timeout="30" path="/" />
  </authentication>
 </system.web>
 ...
</configuration>

Open in new window

0
 
LVL 19

Assisted Solution

by:elimesika
elimesika earned 400 total points
ID: 22642272
HI

Try to enlarge the command time out connection parameter.

See VB code sample at
http://www.sqlservercentral.com/Forums/Topic492443-149-1.aspx
0
 
LVL 60

Assisted Solution

by:Kevin Cross
Kevin Cross earned 800 total points
ID: 22642341
If you don't have a SQL Server Central account, take a look at the CommandTimeout property of SqlClient.SqlCommand.

http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand_members.aspx

You can set the CommandTimeout = 1000 to match the HTTP runtime timeout we set in Web.config.
0
 
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 400 total points
ID: 22642469
what kind of time out you are talking about (there are 3 kinds)
1. Web service timeout controlled by IIS
2. IIS thread execution timeoout
3. DB Command timeout

1. Can be controlled through timeout in the following (in seconds)
<sessionState timeout="20" />

2. Can be controlled by setting the executionTimeout (in seconds)
<httpRuntime executionTimeout="XXX" />

3. Can be controlled by setting the Command Timeout to 0 (means infinite)
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

800 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