473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Web service timeouts

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

May 4 '06 #1
1 3008
Please use the time out property on the client who is calling the web service.
This happens when you experience timeout on calling a web service.
Besides, Check why it is longer to execute to eliminate coding flaws.
Hope this helps
Deepak
"gi******@talk21.com" wrote:
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

May 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: mircu | last post by:
Hi, I need a quick solution to make my application behave correctly when one of these timeouts occurs. I have some logic in session_start but when the authentication cookie timeouts the user is...
2
by: JD | last post by:
Hello, I'm experiencing a problem that I'm hoping someone might be able to shed some light on. I have an ASP.NET page on a Windows 2000 machine that makes web service calls to a .NET web...
1
by: mithu | last post by:
I have a web service(C#) which involves processing lot of information thru a third party component. I have couple of issues with my web service. Issue 1: My web service calls a third party...
5
by: Bob | last post by:
I've got a .NET Framework V1.1 web service running on a Windows 2003 Server that has 2 web methods that are called from a web application on the same server. One is a fire-and-forget method that...
0
by: Barb | last post by:
Hello, I have a (C#) web service being consumed by a high volume "asp classic" site. It worked perfectly until I tried consuming a second web service from the first web service. Both services...
3
by: Crash | last post by:
VS 2003 ..NET 1.x Windows 2000 SP4 Hi all, We recently migrated a data center containing several database and ASP web service servers. We have a Windows Forms application that runs on 200+...
1
by: =?Utf-8?B?Y2hlbmRyaWNrcw==?= | last post by:
I have a C# winform client application that interacts with a library of web services running on a single web site. The application makes multiple web service calls in multiple background threads to...
7
by: Marc Gravell | last post by:
The weird thing Evidenced by? You didn't say why you think this... And over what time interval are you seeing tihs? Are you sure you aren't getting different ProcessAgent instances from a...
10
by: Zytan | last post by:
I have a TcpClient. I set the read/write timeouts at 1 minute (in milliseconds). I get a NetworkStream from it and confirm the timeouts still exist. I do a NetworkStream.Write() and then a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.