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 / February 2006

Tip: Looking for answers? Try searching our database.

"The operation has timed out" sometimes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 15 Feb 2006 18:29 GMT
Calling an external webservice, sometimes we get "operation has timed out."
the full stack trace is below (I've just replaced personal info).

The webservice provider suggested it timed out trying to connect to their
service which may be related to network issues. I don't see that information
in the stack trace.  How do you even begin to debug this to determine if it's
on our end or theirs?

Thanks!

  at
System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
  at
System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request)
  at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
  at <WebServiceProviderProxyName>.<WebMethod>(param1, param2, etc.)
  at <MyApp><MyClass><MyMethodThatCallsWebMethod>
  at <MyPage>.Page_Load(Object sender, EventArgs e)
  at System.Web.UI.Control.OnLoad(EventArgs e)
  at <MyPage>.OnLoad(EventArgs e)
  at System.Web.UI.Control.LoadRecursive()
  at System.Web.UI.Page.ProcessRequestMain()
Josh Twist - 16 Feb 2006 07:53 GMT
>From the stack trace you can't really tell who's end the problem is. I
would imagine you'd normally get a different error if the host couldn't
be resolved but I'm not 100% sure this covers all bases.

Can you reach their web service (maybe just the help page or WSDL) in a
browser? Do you need to have a proxy setup to access external resources
in your office maybe? Have you tried increasing the timeout of your
proxy to see if a response ever comes?

Otherwise I'd suggest using some kind of packet trace tool like
Ethereal (http://www.ethereal.com/) so you can see if a connection was
established with the host.

Good luck

Josh
http://www.thejoyofcode.com/

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.