.NETGURU
System.Net.WebException making web service calls about 10% of the time.
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.aspnet.webservices.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Chris Langston
We are seeing a very frustrating intermittent problem. We are making
Synchronious web service method calls from a .NET windows Service using the
following syntax

WebRequest.getResponse call it occasionally fails with the following error:

1) Exception Information
*********************************************
Exception Type: System.Net.WebException
Status: ConnectFailure
Response: NULL
Message: The underlying connection was closed: Unable to connect to the
remote server.
TargetSite: HorizonBoss.SoftwareUpdate.BusinessObjects.SoftwareInfoResponse
GetSoftwareUpdateInfo(HorizonBoss.SoftwareUpdate.BusinessObjects.SoftwareInf
oRequest)
HelpLink: NULL
Source: HorizonBoss.SoftwareUpdate.WSProxy

StackTrace Information
*********************************************
at
HorizonBoss.SoftwareUpdate.WSProxy.SoftwareUpdateProxy.GetSoftwareUpdateInfo
(SoftwareInfoRequest requestInfo)
at
HorizonBoss.SoftwareUpdate.Components.ApplicationUpdateChecker.ApplicationUp
dateChecker.AppUpdater_OnCheckForUpdate(Object sender, EventArgs e)
This error occurs approximately 10% of the time. We are not using a proxy
server.

Any assistance would be great. We are using WSE 1.0 SP1 to encrypt and
decrypt messages.

The Remote Web Servers are running IIS 5.0 and IIS 6.0. The OS on the
remote servers are Windows 2K or Windows 2003 Server. The Web Servers that
we are calling into are taking a lot of request from many clients asking for
information.

There is no authentications on the remote web server as all requests are
coming through as anonymous.

Thanks

Chris Langston

Reply to this message...
 
    
Trebek
Based on looking at the exception and your figure of 10%, I would guess it
has to has to do with the 'keep-alives'. In a non-WSE service, it is very
simple to override the 'GetWebRequest' method and set keep-alives to false
thus never attempting to reuse a closed connection. With a WSE-generated
proxy class, I *believe* this is still possible (never used it so I don't
where you will need to override this method).

Try this out and see if it fixes your problem.

HTH,
Alex

"Chris Langston" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Feroze [msft] (VIP)
Can you tell me if you are using Windows Integrated Authentication on the
webservice (i.e the server side) ?

If so, you might be running out of wildcard ports on your client, and there
are some settings you can tweak to alleviate this problem

feroze
============
this posting is provided as-is.
============

"Trebek" <Click here to reveal e-mail address> wrote in message
news:9KSRc.27579$Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Chris Langston
Feroze,

This is the setting in our web.config file.

<authentication mode="Windows" />
<authorization>
<allow users="*" />
</authorization>

On IIS when we setup the Web Service, we are allowing Anonymous
connection. I guess that is the question that you are asking?

Chris Langston
Click here to reveal e-mail address

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Reply to this message...
 
    
Lucien
This doesn't look like a WSE specific issue and therefore I would post this
also in ASPNET/ASMX discussion groups (or contact tech support).

It's difficult to tell what's causing this but you may want to check the
server timeout setting and try to increase it and see if that changes
anything. Also check you're not running out of connections.

"Chris Langston" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Diagnostics.StackTrace
System.EventArgs
System.Net.WebException
System.Net.WebRequest




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification