Hi!
That 's my first developement usin Topshelf.
I have tested it in a virtual machine, where I develope without any problem, but when I try to start the service in another computer I receive this: (see the attached screen capture.)
This is the code related with topself service:
Public Class EvolutionerService
Public Shared Sub Main(args As String())
Topshelf.HostFactory.Run(
Sub(evol)
evol.Service(Of EvolutionerMainClass)()
evol.SetDescription("Evolutioner service")
evol.SetDisplayName("Evolutioner")
evol.SetServiceName("evolutioner_service")
evol.RunAsLocalSystem()
End Sub)
End Sub
End Class
I thougth it could be a problem with credentials, but I try to start it in a new computer with the same credentials and it also crashes.
The port I'm using is 9090, so this is not the problem, and the .NET Framework is the same in the computers I try to start it.
I don't have any idea of what can be happening.
Waiting for help. If more information is needed, ask for it, please.
Thanks!