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

WebServices Timeout

I have a web service that I use to kick off a long-running job that dumps a
lot of data to an XML file (takes about 5 minutes). I need to have ASP.NET
produce the XML file as the web site has the code I need (and extracting it
into a stand-alone EXE would be a LOT of work). The webservice client is a
vb.net app with a vs-generated webservice.

Currently, the webservice seems to timeout after about 120 seconds.

I have been struggling with this for 2 days now... any help would be much
appreciated.

I have set the processModel in the machine.config:

<processModel responseDeadlockInterval="00:30:00"
responseRestartDeadlockInterval="01:00:00" autoConfig="true"/>

and executionTimeout & debug="false" in web.config:

<httpRuntime executionTimeout="9000" maxRequestLength="1048576" />
<compilation debug="false" defaultLanguage="vb">

IIS Web Configuration:
keep-alives enabled, connection timeout 120 seconds

and my client has an infinite timeout:

Dim t As New MyWebService
t.Timeout = System.Threading.Timeout.Infinite
EventLog1.WriteEntry("start webservice request: " & CStr(DateTime.Now))
Try
EventLog1.WriteEntry("webservice returned: " & CStr(DateTime.Now) &
t.writexml)
Catch ex as exception
EventLog1.WriteEntry(ex.message)
End Try

I get the following error from ASP.NET on the server logs after about 120
seconds:

Event code: 3001
Event message: The request has been aborted.
Event time: 2006/11/27 08:58:28 AM
Exception type: HttpException
Exception message: Request timed out.

And a general exception on the client:

Exception: request failed with an empty response.

If I restart the Application Pool and the Web site, and immediately call the
WebService it occasionally runs fine - but then only once, sometimes.

Anyone have any further ideas what I can do to fix this? Or a better way to
invoke long-running jobs in ASP.NET.

Thanks
Chris

Nov 27 '06 #1
1 10969
As a follow-on to this:
I think I've found the culprit:
pingFrequency/pingTimeout/PingResponseTime

What I think is happening is that "Enable Pinging" set on for the
Application Pool, the worker process is being pinged, failing and then being
restarted. PingInterval of 30 seconds + PingResponseTime of 90 seconds=120
seconds.

Does anyone think this could be what is happening. On the basis of my
slightly haphazard testing so far, it seems to be...
"tudor" wrote:
I have a web service that I use to kick off a long-running job that dumps a
lot of data to an XML file (takes about 5 minutes). I need to have ASP.NET
produce the XML file as the web site has the code I need (and extracting it
into a stand-alone EXE would be a LOT of work). The webservice client is a
vb.net app with a vs-generated webservice.

Currently, the webservice seems to timeout after about 120 seconds.

I have been struggling with this for 2 days now... any help would be much
appreciated.

I have set the processModel in the machine.config:

<processModel responseDeadlockInterval="00:30:00"
responseRestartDeadlockInterval="01:00:00" autoConfig="true"/>

and executionTimeout & debug="false" in web.config:

<httpRuntime executionTimeout="9000" maxRequestLength="1048576" />
<compilation debug="false" defaultLanguage="vb">

IIS Web Configuration:
keep-alives enabled, connection timeout 120 seconds

and my client has an infinite timeout:

Dim t As New MyWebService
t.Timeout = System.Threading.Timeout.Infinite
EventLog1.WriteEntry("start webservice request: " & CStr(DateTime.Now))
Try
EventLog1.WriteEntry("webservice returned: " & CStr(DateTime.Now) &
t.writexml)
Catch ex as exception
EventLog1.WriteEntry(ex.message)
End Try

I get the following error from ASP.NET on the server logs after about 120
seconds:

Event code: 3001
Event message: The request has been aborted.
Event time: 2006/11/27 08:58:28 AM
Exception type: HttpException
Exception message: Request timed out.

And a general exception on the client:

Exception: request failed with an empty response.

If I restart the Application Pool and the Web site, and immediately call the
WebService it occasionally runs fine - but then only once, sometimes.

Anyone have any further ideas what I can do to fix this? Or a better way to
invoke long-running jobs in ASP.NET.

Thanks
Chris
Nov 27 '06 #2

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

Similar topics

0
by: Jo | last post by:
Hi, I've got a win app in vb.net that's calling a webservice method in a thread. All webservice functions are carried out on that thread - there's no communication required back to the calling...
5
by: cyberstrike | last post by:
Hi guys, my company was wondering if it's possible to develop ASP.NET/Webservices easily using a IIS installed on a server instead of installing IIS locally on the development boxes. Can you...
1
by: Hudson Mendes | last post by:
I'm not believing in results of many tests I did, but they justify this Post title. How may I setup my WebServices or ASPNET Processo to process more than one call per time??? Look: ...
1
by: Lloyd Dupont | last post by:
Hi, I'm new to WebService but had to investigate as we will have a java server part and a .NET client. I read through and tested this Sun's tutorial:...
2
by: Antuane | last post by:
any one have any idea how transactions could be enabled in webservices. i.e., suppose i've got 2 methods - one to add a contact, & the other to set some miscellaneous details for the contact, in a...
1
by: Mike | last post by:
Hi all, I have written a webservice which I am using in my smartphone applicaiton. I have tried the webservice with a WinForms client and it works time and time again perfectly. When I include...
8
by: Komandur Kannan | last post by:
We have a smart device application running on handhelds(Symbol MC9000G). The backend is Oracle and a middle tier web services development done in Vb.net. We use pessimistic Locking due to...
2
by: WSE with SSL and large amount of data | last post by:
Hi there, What's the better strategy for uploading large files trough webservices? I can use Dime/WS-Attachments but for files with over 5MB in size, maybe I got some timeout/refuse problems in...
0
by: failfaizan | last post by:
I made a webservice but i got the following error: Custom tool error:Unable to import WebService/Schema.Unable to import binding. Is there any problem in my WSDL.Here is my WSDL file.Plz help me...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.