2

I created a custom Windows Service and I am trying to start it through command prompt:

C:\Windows\system32>net START "CustomService"
The CustomService service is starting.
The CustomService service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.

I tried looking at HELPMSG 3534. It states: The service did not report an error. I do not know where to go from here. I tried googling this, but nothing really helpful. I am really do not know how to troubleshoot this.

Protected Overrides Sub OnStart(ByVal args() As String)
    SetConfigVariables()
    _logger.WriteMessageToLog(SimpleLog.LogType.InfoType, "Start Service")
End Sub

The SetConfigVariables() calls sql server and pulls some data and set appropriate global variables.

Peter Sun
  • 1,675
  • 4
  • 27
  • 50

1 Answers1

0

Q: Did you get this working?

SUGGESTION:

If not, make sure you've done everything in this article, particularly:

MSDN Walkthrough: Create a Windows service app

Before you can run a Windows service, you need to install it, which registers it with the Service Control Manager

ALSO:

Q: How are things going with this question: Accessing Config File From Web - No AppSettings

paulsm4
  • 114,292
  • 17
  • 138
  • 190