Hi Dave,

The ServiceBase class has a property named "AutoLog". If this property
is "true" by 
default (which I don't know), the ServiceBase class reports failures and
state change 
information for Start, Stop, Pause, and Continue events in the Event
log. Maybe
setting AutoLog to false explicitly will solve the problem, but I
haven't tried that.

HTH, Stoyan


-----Original Message-----
From: Dave Adair [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 15, 2002 3:56 PM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] .NET Windows Services won't start if event
log is full?


I've read several posts around the net from people saying that their
Windows Services written in .NET don't start correctly when the event
log is full.  The service continually shows as "Starting" in the
services manager.  I am now seeing this same behaviour since the event
log on my test server become full.  I set the log to "overwrite events
as needed" and the service is starting correctly now.

Can anyone confirm that this is a bug in .NET?  I haven't seen anything
official from Microsoft yet.  I'm using .NET SP2.

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or subscribe to other DevelopMentor lists at
http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to