Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 17th, 2003, 01:34 PM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Urgent Web Service Problem

We've created a webservice using .Net 2003. We got a report from a consumer of the service and did some work to trace down the problem.

To reproduce, I created a VB desktop client with a single button that invokes the service. The webservice object is created and set to nothing when the button is clicked. The first time the service is invoked, it works, and any immediate usage as well. If the application sits for, say, 10 minutes and the service is invoked again, it does not work. It hangs and finally times out ("The underlying connection was closed: An unexpected error occurred on a receive."). After that happens, the service works again.

Any ideas what might be going wrong? Thanks!

 
Old August 4th, 2003, 12:58 PM
Registered User
 
Join Date: Aug 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm guessing that your timeout value for your session cache is expiring.

I'd do a couple of things....first add code to check for the object and reinitialize it if necessary.

You can also manipulate the timeout value for the caching.

Try this link for info regarding caching.

http://www.codeguru.com/vb_internet/PK102302.html






Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with crystal report web service id2359 BOOK: Professional Crystal Reports for VS.NET 2 January 15th, 2006 09:19 PM
problem with crystal report web service id2359 BOOK: Professional Crystal Reports for VS.NET 0 October 28th, 2004 06:56 AM
Problem when downloading web service??? joan .NET Web Services 2 May 16th, 2004 06:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.