I'm having a problem with calls to a web service that time out
intermittently. When the problem occurs the exception is put in the
event log with a message of
InvalidOperationException: Client found response content type of
'text/html; charset=utf-8', but expected 'text/xml'.
The details in the event log suggest that an HttpException occurred
with a message of "Request timed out.", which caused the subsequent
InvalidOperationException.
I've noticed that each time this occurs there is a Warning in the event
log immediately beforehand, with a source of ASP.NET 2.0.50727.0 and
details of
Event code: 3001
Event message: The request has been aborted.
Event time: 04/05/2006 08:35:32
Event time (UTC): 04/05/2006 07:35:32
Event ID: c2aa453077be4a4682a5d5d1020718c4
Event sequence: 845
Event occurrence: 2
Event detail code: 0
A timeout is mentioned later on.
My question is, have I done anything wrong with my web service or is it
simply a case of the request timing out? Is this the usual way that Web
Services behave when a timeout occurs? If so is it possible to increase
the timeout?
Any suggestions would be appreciated.
Regards,
Ross