Re: Request timed out error only when running release mode not deb



Thanks, updating ExecutionTimeout solved my problem.

One more question, is there a way to set this within code so that the
timeout can be very long (up to a day) for a specific call?

--
Thanks,

Tim


"Steven Cheng[MSFT]" wrote:

Hi Tim,

For ASP.NET webservice, when you call it from .net client(through
autogenerated proxy class) and the service method have long-run task to
run, you may get timeout error due to the following two causes:

** The ASP.NET runtime has a "executionTime" limitation, by default it is
set to 110 seconds. And this timeout only take effect when running in
release mode.

#httpRuntime Element (ASP.NET Settings Schema)
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx


** The .NET webservcie's client proxy class (derived from WebClient

#WebClientProtocol.Timeout Property
http://msdn2.microsoft.com/en-us/library/system.web.services.protocols.webcl
ientprotocol.timeout(VS.71).aspx

For your scenario, the error message is more likely due to the server-side
"executionTimeout" setting. You can try enlarge the "executionTimeout"
attribute in the <httpRuntime> element in web.config file to see whether it
helps.

If you have anything unclear, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
From: =?Utf-8?B?VGltRw==?= <fullhouse@xxxxxxxxxxxxxxxx>
References: <3E4295D4-4DFE-4FF4-AFC8-8F6954846267@xxxxxxxxxxxxx>
<#SlznWP6HHA.1052@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: Request timed out error only when running release mode not deb
Date: Mon, 27 Aug 2007 19:50:01 -0700


I don't have the stack trace right now so this is from memory. The
timeout
was propagated as a soapexception to the client in something like
GetAsyncResponse (client should be waiting for the server to finish the
async
method). The server was not running in either debug mode or within a
debugger, the client was running within the visual studio debugger. There
was no stack trace information supplied with the soapexception, only
"Request
timed out".
--
Thanks,

Tim


"John Saunders [MVP]" wrote:

"TimG" <fullhouse@xxxxxxxxxxxxxxxx> wrote in message
news:3E4295D4-4DFE-4FF4-AFC8-8F6954846267@xxxxxxxxxxxxxxxx
I have a web service that performs a long running task (typically 10-20
minutes) via an async call. When I run the web service either within
the
debugger or with Debug=True it works as expected. When I run it with
Debug=False it gets a HttpException, Request timed out after 5 minutes.

I have tried upping the timeout to 15 minutes (even though MSDN docs
say
timeout is for synchronous calls) and the error still happens after 5
minutes.

Any thoughts or hints on what is happening.

Which request timed out? A request from a client application? If so, has
the
client changed, or is it only the server that has changed, from debug to
non-debug modes?
--
John Saunders [MVP]





.



Relevant Pages

  • RE: folder virtualisation
    ... client GUI application. ... Yes, based on my feedback, it seems that the named pipe object may be ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.platformsdk.security)
  • RE: Web App With Signature
    ... use some rich client approach such as ACTIVEX control. ... retrieve protect resource on client(such as file system or certificate ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: asp.net pluggable pages
    ... 1.According to different client users, you can create multiple ASP.NET ascx ... users that will need customized GUI. ... ASP.NET support dynamically create server controls. ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Request timed out error only when running release mode not deb
    ... you may get timeout error due to the following two causes: ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ... GetAsyncResponse (client should be waiting for the server to finish the ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: FileCopy vs. Read & Write or CopyFile API
    ... synchronize a document in server to its client with VB FileCopy function. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vb.general.discussion)

Loading