473,387 Members | 1,863 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,387 software developers and data experts.

Web Service stops responding

I have a .NET web service running on a 2K box and IIS 5. We've experienced
it twice now where the service stops responding to any type of request after
running succesfully for a month or so. The service does not respond to the
consumer or to my browser pointing to the asmx file. An IIS restart fixed
the problem once but has also not fixed the problem. We had to go as far as
restarting Windows. Any ideas? Some configuration tweak that might help to
prevent something like this. As far as I know we are using the default
configuration values.

Thanks,
--
Dan S
Nov 23 '05 #1
9 6290
Dan S wrote:
I have a .NET web service running on a 2K box and IIS 5. We've experienced
it twice now where the service stops responding to any type of request after
running succesfully for a month or so. The service does not respond to the
consumer or to my browser pointing to the asmx file. An IIS restart fixed
the problem once but has also not fixed the problem. We had to go as far as
restarting Windows. Any ideas? Some configuration tweak that might help to
prevent something like this. As far as I know we are using the default
configuration values.

Thanks,


I think we're having similar problems ( see my post just before yours ).

I am also using IIS5;2K

Do you ever see any errors or 500 (Server Unavailable) messages?

I don't. From my client's side, it looks as if the web method is being
called just fine. From the server side, it looks as if the method was
never called!

Nov 23 '05 #2
Dan S wrote:
I have a .NET web service running on a 2K box and IIS 5. We've experienced
it twice now where the service stops responding to any type of request after
running succesfully for a month or so. The service does not respond to the
consumer or to my browser pointing to the asmx file. An IIS restart fixed
the problem once but has also not fixed the problem. We had to go as far as
restarting Windows. Any ideas? Some configuration tweak that might help to
prevent something like this. As far as I know we are using the default
configuration values.

Thanks,


I think we're having similar problems ( see my post just before yours ).

I am also using IIS5;2K

Do you ever see any errors or 500 (Server Unavailable) messages?

I don't. From my client's side, it looks as if the web method is being
called just fine. From the server side, it looks as if the method was
never called!

Nov 23 '05 #3
Sounds similar. But the consumer just hangs and never succeeds. However,
the service is returning some data - is your return type just a void? And
yes, I never get a 500 error, the logs for the service are empty as if it is
never called, and I don't see anything in the IIS logs either. Very strange.
What bothers me the most is that restarting IIS hasn't helped in some cases.
We've had to do a full reboot, which can potentially effect hundreds of
people.
--
Dan S
"ja*****@texeme.com" wrote:
Dan S wrote:
I have a .NET web service running on a 2K box and IIS 5. We've experienced
it twice now where the service stops responding to any type of request after
running succesfully for a month or so. The service does not respond to the
consumer or to my browser pointing to the asmx file. An IIS restart fixed
the problem once but has also not fixed the problem. We had to go as far as
restarting Windows. Any ideas? Some configuration tweak that might help to
prevent something like this. As far as I know we are using the default
configuration values.

Thanks,


I think we're having similar problems ( see my post just before yours ).

I am also using IIS5;2K

Do you ever see any errors or 500 (Server Unavailable) messages?

I don't. From my client's side, it looks as if the web method is being
called just fine. From the server side, it looks as if the method was
never called!

Nov 23 '05 #4
Sounds similar. But the consumer just hangs and never succeeds. However,
the service is returning some data - is your return type just a void? And
yes, I never get a 500 error, the logs for the service are empty as if it is
never called, and I don't see anything in the IIS logs either. Very strange.
What bothers me the most is that restarting IIS hasn't helped in some cases.
We've had to do a full reboot, which can potentially effect hundreds of
people.
--
Dan S
"ja*****@texeme.com" wrote:
Dan S wrote:
I have a .NET web service running on a 2K box and IIS 5. We've experienced
it twice now where the service stops responding to any type of request after
running succesfully for a month or so. The service does not respond to the
consumer or to my browser pointing to the asmx file. An IIS restart fixed
the problem once but has also not fixed the problem. We had to go as far as
restarting Windows. Any ideas? Some configuration tweak that might help to
prevent something like this. As far as I know we are using the default
configuration values.

Thanks,


I think we're having similar problems ( see my post just before yours ).

I am also using IIS5;2K

Do you ever see any errors or 500 (Server Unavailable) messages?

I don't. From my client's side, it looks as if the web method is being
called just fine. From the server side, it looks as if the method was
never called!

Nov 23 '05 #5

My return is void.

But here's the wierd thing on my side.

Knowing about this problem, what I do is a retry.

If there are 800 lines in the source, and I only see 500 web service
completes (by checking the database ) I run it again after waiting 3
minutes.

It usually works by at least the 3rd try!

Again the part that I find most bothersome is that to the code, those
calls look as if they were never made! They just disappear into the ether!

Dan S wrote:
Sounds similar. But the consumer just hangs and never succeeds. However,
the service is returning some data - is your return type just a void? And
yes, I never get a 500 error, the logs for the service are empty as if it is
never called, and I don't see anything in the IIS logs either. Very strange.
What bothers me the most is that restarting IIS hasn't helped in some cases.
We've had to do a full reboot, which can potentially effect hundreds of
people.

Nov 23 '05 #6

My return is void.

But here's the wierd thing on my side.

Knowing about this problem, what I do is a retry.

If there are 800 lines in the source, and I only see 500 web service
completes (by checking the database ) I run it again after waiting 3
minutes.

It usually works by at least the 3rd try!

Again the part that I find most bothersome is that to the code, those
calls look as if they were never made! They just disappear into the ether!

Dan S wrote:
Sounds similar. But the consumer just hangs and never succeeds. However,
the service is returning some data - is your return type just a void? And
yes, I never get a 500 error, the logs for the service are empty as if it is
never called, and I don't see anything in the IIS logs either. Very strange.
What bothers me the most is that restarting IIS hasn't helped in some cases.
We've had to do a full reboot, which can potentially effect hundreds of
people.

Nov 23 '05 #7
Have you observed anything in IIS logs?
Normally there is a file called W3SVC which has all the entries for the HTTP
web requests.
When you experience this situation next time, Please open the asmx file in
the browser and then look at the IIS log file.
Also look at eventviewer to find anything about the web service.
What is this web service supposed to do?
How is the memory consumption and CPU utliziation on that computer when this
kind of situation happens?
I know this is a very tricky situation.
We first have to find what the problem is and then go look for a solution.
Thanks
Deepak

"Dan S" wrote:
I have a .NET web service running on a 2K box and IIS 5. We've experienced
it twice now where the service stops responding to any type of request after
running succesfully for a month or so. The service does not respond to the
consumer or to my browser pointing to the asmx file. An IIS restart fixed
the problem once but has also not fixed the problem. We had to go as far as
restarting Windows. Any ideas? Some configuration tweak that might help to
prevent something like this. As far as I know we are using the default
configuration values.

Thanks,
--
Dan S

Nov 23 '05 #8
I'm experiencing this problem and found that when using the SoapHeader, it needs to be initialized during the web service class constructor. This solved the issue for part of the problem, but I still get the same error.

[code]
public class SoapHeaderMessage : SoapHeader
{
public string UserName;
public string PassWord;
}

[WebServiceAttribute(Namespace="http://mylocalhostingsite")]
public class WebServiceClass : WebService
{
public SoapHeaderMessage soapHeader;

public WebServiceClass()
{
soapHeader = new SoapHeaderMessage();
soapHeader.MustUnderstand = true;
soapHeader.UserName = ConfigurationSettings.AppSettings["soapUserName"];
soapHeader.PassWord = ConfigurationSettings.AppSettings["soapPassWord"];

...
}

[WebMethod, SoapHeaderAttribute("soapHeader")]
public void myWebMethod()
{
...
}
}

Let me know what other solutions anyone comes across.
Apr 28 '06 #9
I have found by using Ethereal's Network Analyzer that the packets changed from one namespace to another using my local machine for references to a live version of the app. Since the app uses SSL, I installed the certificate from the web server and the problem was fixed.

1. Use Ethereal Network Protocol Analyzer
2. Ensure that when using SSL, that the end-user computer has the certificate from the web server installed.

Hope this helps!
May 11 '06 #10

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

Similar topics

0
by: Lior M | last post by:
Hello everyone I'm having a little problem where my mysql 4.0.21 for some reason stops "responding" until I do a flush-hosts. This is happening almost every day. It's a pretty heavy loaded...
7
by: mjkahn | last post by:
Everything runs fine for a while (weeks even), and then IIS stops responding to (or even logging) requests for ASP pages. HTML pages are served up just fine. I'm running Windows 2000 SP4, and...
3
by: TM360 | last post by:
I realize this may not be the right group to post this, but I'm not having much success elsewhere so I thought I'd give it a try... In our application we have a link that opens a new window...
2
by: Nils Hedström | last post by:
Today my stateserver (running at the same computer at the web-server) suddenly stopped responding (after 10 days working perfectly). I did not see any entry in the eventlog indicating that the...
0
by: dotnet user | last post by:
I have a asp.net webpage which has aroud 20 steps as hyperlink. when start button is clicked, then step1 starts which does some operation in db and returns some value, based on that value i post...
0
by: Dan S | last post by:
I have a .NET web service running on a 2K box and IIS 5. We've experienced it twice now where the service stops responding to any type of request after running succesfully for a month or so. The...
4
by: Michael | last post by:
Hi Everyone, I hope someone else has had this problem. I recently started to use VS 2005 (vb.net) and today alone I have had to close VS 8 times while trying to code. I have a least 130 controls...
0
by: Developer111 | last post by:
I am developing a Windows Service Application in VB.net (using WMI). The application monitors for occurrence (Start) of any new event/ process in Win32 environment. The code which I am using for...
0
by: Developer111 | last post by:
I am developing a Windows Service Application in VB.net (using WMI). The application monitors for occurrence (Start) of any new event/ process in Win32 environment. The code which I am using for...
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:
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.