Web Request times out

R

Robert May

I'm getting the following error message:

Exception: System.Net.WebException
Message: The operation has timed-out.
Source: System.Web.Services
at
System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebReques
t request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at
munged_Collector.com.munged.collector.Submission.SubmitForReview(Advertiseme
nt ad)
at munged_Collector.SourceManager.AdHandler(CollectedAd item, Source
source)

This happens after an indeterminate amount of time (usually 2 to 3 minutes)
of the application working normally. The server never see's the request for
the web service. Here's the code that's run on the client up until it
breaks:

log.Debug("Creating new submission object.");

submission = new com.munged.collector.Submission();

log.Debug("Creating new advertisement.");

com.munged.collector.Advertisement w_ad = new
com.munged.collector.Advertisement();

log.Debug("Setting URL.");

w_ad.url = item.URL;

log.Debug("Setting phones.");

w_ad.phones = "";

foreach ( PhoneNumber p in item.Phone )

{

log.Debug("Adding " + p.ToString());

if ( w_ad.phones.Length > 0 )

w_ad.phones += ",";

ulong ps = (ulong) p;

w_ad.phones += ps.ToString();

}

log.Debug("Creating authorization header.");

com.munged.collector.AuthHeader authHeader = new
com.munged.collector.AuthHeader();

authHeader.Username = munged;

authHeader.Password = munged;

submission.AuthHeaderValue = authHeader;

log.Info("Username=" + authHeader.Username + "::password=" +
authHeader.Password);

log.Debug("Submitting for review.");

com.munged.collector.SubmissionInformation si =
submission.SubmitForReview( w_ad );



Here's the generated log made by the logging statements above:



2004-07-21 21:35:47,015 [3572] DEBUG munged_Collector.SourceManager [] -
Creating new submission object.
2004-07-21 21:35:47,015 [3572] DEBUG munged_Collector.SourceManager [] -
Creating new advertisement.
2004-07-21 21:35:47,015 [3572] DEBUG munged_Collector.SourceManager [] -
Setting URL.
2004-07-21 21:35:47,015 [3572] DEBUG munged_Collector.SourceManager [] -
Setting phones.
2004-07-21 21:35:47,015 [3572] DEBUG munged_Collector.SourceManager [] -
Adding munged
2004-07-21 21:35:47,015 [3572] DEBUG munged_Collector.SourceManager [] -
Adding munged
2004-07-21 21:35:47,015 [3572] DEBUG munged_Collector.SourceManager [] -
Creating authorization header.
2004-07-21 21:35:47,015 [3572] INFO munged_Collector.SourceManager [] -
Username=munged::password=munged
2004-07-21 21:35:47,015 [3572] DEBUG munged_Collector.SourceManager [] -
Submitting for review.
2004-07-21 21:37:27,015 [3572] ERROR munged_Collector.SourceManager [] -
Error handling ad.
Exception: System.Net.WebException
Message: The operation has timed-out.
Source: System.Web.Services
at
System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebReques
t request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at
munged_Collector.com.munged.collector.Submission.SubmitForReview(Advertiseme
nt ad)
at munged_Collector.SourceManager.AdHandler(CollectedAd item, Source
source)




Any suggestions?



Robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,125
Latest member
VinayKumar Nevatia_
Top