all groups > dotnet web services > november 2006 >
You're in the

dotnet web services

group:

WebServices Timeout


WebServices Timeout tudor
11/27/2006 3:12:02 AM
dotnet web services:
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


RE: WebServices Timeout tudor
11/27/2006 3:38:01 PM
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...


[quoted text, click to view]
AddThis Social Bookmark Button