Just trying to make a small service but can't get it to work
Service:
public partial class Service1 : ServiceBase
{
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
public Service1()
{
InitializeComponent();
}
protected override void OnStart(string[] args)
{
logger.Info("Ruminant started");
}
protected override void OnStop()
{
}
}
Config file:
Starting up the service fails with an error 1920.
I must be missing something simple I guess. File permission on C:\Test folder are full control for anyone/anything. Config is present where service exe is installed.
Out of clues. Hope someone can point in a good direction.
Regards,
Erik