0

Envirment: Windows Server 2003 + IIS 6 .Net Framework 4.0

I have a well-worked WCF RESTful service hosted in IIS6, Windows Server 2003.

Each time Server restarted, this service will down and response status code is 404. Then restart IIS, problem fixed. Other non-WCF-RESTful services on the same IIS has no this problem.

My Server is scheduled to restart once everyday, so I have to restart IIS after each server started.

I have no idea why this happened an what cause WCF RESTful returned 404. Is there anyone help to solve this?

Oh my dog
  • 33
  • 5

1 Answers1

0

Try to figure out what happens on service side. Add an error handler to you service and log every exception (you can use log4net for that).

Here is an example:

Error handling

Or to simplify the task you can just torn on Tracing:

WCF tracing

Community
  • 1
  • 1
Igor Tkachenko
  • 1,120
  • 7
  • 17