invalid operation exception error

  • Thread starter Thread starter Pradeep
  • Start date Start date
P

Pradeep

My application runs as a service on a server. The applications runs
fine for a few days. But after few days the service ceases to run.
This happened twice. The event viewer of the server showed the below
msg. The thing which is confusing me is tha the program runs fine for
few days but suddenly it stops executing. I checkd the server and
found no abnormalities when this error occured.

EventType clr20r3, P1 printermonitorservcie.exe, P2 1.0.0.0, P3
46e57812, P4 mscorlib 2, P5 1.0.2274.14931, P6 442441d5, P7 1b, P8
e9, P9 system.invalidoperationexception, P10 NIL.

Kindly help
 
Pradeep,
Without know exactly what the service does, it's difficult to guess what
could have gone wrong. So the alternate route is to take steps to grap some
extra data that you could use to debug the issue in more detail.

1. Make sure you use Exception handling and a method for the service to
resume normal execution.
2. secondly you can use Tracing to write to log files.
http://www.eggheadcafe.com/articles/20030402.asp (Sample) or google for .NET
TextWriterTraceListener Sample
3. Try to write everything from the Exception as well as the InnerException
if any either to the Event Log or the Trace Log.

Post what ever you get in the forum and someone would be able to help.

Regards,

Trevor Benedict
MCSD
 
Pradeep,
Without know exactly what the service does, it's difficult to guess what
could have gone wrong. So the alternate route is to take steps to grap some
extra data that you could use to debug the issue in more detail.

1. Make sure you use Exception handling and a method for the service to
resume normal execution.
2. secondly you can use Tracing to write to log files.http://www.eggheadcafe.com/articles/20030402.asp(Sample) or google for .NET
TextWriterTraceListener Sample
3. Try to write everything from the Exception as well as the InnerException
if any either to the Event Log or the Trace Log.

Post what ever you get in the forum and someone would be able to help.

Regards,

Trevor Benedict
MCSD








- Show quoted text -

Thanks Trevor

will surely try as advised.

Thanks

Pradeep
 
Back
Top