sexta-feira, outubro 21, 2005

PRB: .NET Windows Service - "Sub Main was not found."

Include this following lines into:

Region " Component Designer generated code "

' The main entry point for the process
_
Shared Sub Main()
Dim ServicesToRun() As System.ServiceProcess.ServiceBase

ServicesToRun = New System.ServiceProcess.ServiceBase() {New SendSMS}

System.ServiceProcess.ServiceBase.Run(ServicesToRun)
End Sub

Now just need to compile again

1 comentário:

Papires disse...

Many times I get this error when constructing an WebService...

I don't khow the source of this problem, but this is the solution I get from looking in internet

Best Regards
Paulo Pires