Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2007

Tip: Looking for answers? Try searching our database.

Timeout when debugging in web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dale - 06 Nov 2007 18:33 GMT
I am trying to step through a web service call in .Net 2.0 with VS2005.  The
application is running in the VS2005 web server, not IIS.  The web service
client is a .Net 2.0 console application.

At one call to a long running method (about 20+ minutes in production) the
client throws a timeout exception as described in
http://msdn2.microsoft.com/en-us/library/47096yt2(VS.71).aspx.  This happens
about 90 seconds after entering the web service call.

I had initially set the TimeOut value to 3600 - which I still think should
have worked - but following the instructions in the article above, I set the
TimeOut to -1.  This had no effect on the problem.  I still timeout after
about 90 seconds.

I also set the httpRuntime executionTimeout value to 3600 in my web.config.

Any ideas on how to fix this timeout problem?

Thanks,

Dale
Signature

Dale Preston
MCAD C#
MCSE, MCDBA

Dale - 06 Nov 2007 19:03 GMT
Just an update, this timeout is occuring even when not debugging.

Thanks,

Dale

> I am trying to step through a web service call in .Net 2.0 with VS2005.  The
> application is running in the VS2005 web server, not IIS.  The web service
[quoted text clipped - 17 lines]
>
> Dale
Dale - 06 Nov 2007 19:52 GMT
Whoops.  I need to learn how to read, I guess.  The timeout is an
SqlClient.SqlException.  I need to set the CommandTimeout on the connection.

I apologize for any wasted time.

Dale

> I am trying to step through a web service call in .Net 2.0 with VS2005.  The
> application is running in the VS2005 web server, not IIS.  The web service
[quoted text clipped - 17 lines]
>
> Dale
Andrew Faust - 07 Nov 2007 05:51 GMT
Sounds like you found the solution to the exception you were getting.
However, may I make a design suggestion? If you anticipate a web service
call to take 20 minutes to return a result, could you instead redesign to
make the client submit the request. Have the web service return an
acknowledgement that it would start work. You can then have your client
continuously checking back in (every 30 seconds or so) until the server was
finished.

This method takes a bit more work, but it will be more scalable and less
interuption prone. With your current model you're tying up network
resources on the server. Additionally, if there is any network hiccup in
that 20 minutes you've lost the work and will have to restart with a new
request.

Signature

Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com

> Whoops.  I need to learn how to read, I guess.  The timeout is an
> SqlClient.SqlException.  I need to set the CommandTimeout on the
[quoted text clipped - 33 lines]
>>
>> Dale
Dale - 07 Nov 2007 15:49 GMT
That's a good suggestion.  Given the opportunity to make a change like that,
I'll definitely do something like that.

Thanks,

Dale

> Sounds like you found the solution to the exception you were getting.
> However, may I make a design suggestion? If you anticipate a web service
[quoted text clipped - 47 lines]
> >>
> >> Dale

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.