Error 1053 when making a service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DeV

    Error 1053 when making a service

    Hi,

    I'm running into a problem which I cannot seem to get solved. When I
    make my own service I have the following code:

    Protected Overrides Sub OnStart(ByVal args() As String)
    Dim t As New System.Threadin g.Thread(New
    System.Threadin g.ThreadStart(A ddressOf Worker.DoWork))
    t.Start()
    End Sub

    Protected Overrides Sub OnStop()
    Worker.StopWork ()
    End Sub

    I have a Worker class which tells the application what to do, both
    stop and dowork are empty at the moment. When I rightclick the
    service and select Start in the service it immediatly throws the 1053
    error. I have an empty Shared Sub Main() too, which it wants to have
    because else it won't compile at all. I think it might have something
    to do with me renaming a classname, but I have no clue what it is.

    Hope someone can help,

    -DeV

Working...