Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Service cannot start
Message
From
20/09/2010 11:43:17
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01481547
Message ID:
01482005
Views:
52
>Bonnie already chimed in here, but writing to the Event Log is definitely disallowed by default - you have to explicitly add permission to allow this.

After a few seconds, Windows allows to write to the event log. It is something weird I have never found out.

>One thing I do when trying to debug Windows services is to add a line like this which adds a delay to the startup, giving me time to attach a debugger.

I use this at the top:
    Private oTimer As System.Timers.Timer = New System.Timers.Timer(5000)
This tells the Windows Service to wait 5 seconds before starting. Usually, I would put it to 30 seconds. But, we are testing right now so I want it to be live asap.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform