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 + ":assword=" +
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:assword=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
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 + ":assword=" +
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:assword=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