Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Operation time out

Status
Not open for further replies.

Winan

IS-IT--Management
Jan 1, 2002
83
ID
Dear All,

When calling a long process of web services from ASP.NET, I got operation time out..

I already did the following:

to extend session time out from 360 to 1200
to extend Execution time out to 1200

when I try to investigate the problem through SQL Analyzer the task is still processing.. why I got the "Operation time out" message.

it seems like ASP.NET does not know the processing status.

I need advise ..

Thanks a lot in advance

Regards
Winanjaya
 
Of course it doesn't know the processing status. It is no different then opening up your web browser to a website... if your browser doesn't hear back in a timely fashion, it has to assume something on the other end is broken, and thus times out. Why is your SQL Query taking so long? Is it trying to get too much data?

Did you increase the execution timeout in the Web Service's Web.config file?



Senior Software Developer
 
to extend session time out from 360 to 1200
to extend Execution time out to 1200

this is a covering the symptoms of the problem, not addressing actual problem. the biggest resource issues usually involve db or IO operations. like SiriusBlackOp metioned. you probally need to address the sql queries.

either resturcture the queries and/or process results in smaller batches.

i ran into this problem on a previous project. I was trying to process 10,000 records at once. Instead i broke the 10,000 records into 100 record batches and process each batch individually.

another option is to use a smiple "middleware" product to process requests offline. MSMQ is a simple service which works great with asp.net. you will need a windows service to receive the messages and process the requests.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Hello,

Could any body please advise how to use MSMQ with ASP.NET?

Regards
Winanjaya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top