Cannot start service on computer '.'

530 views
Skip to first unread message

Manuel Muñoz

unread,
Dec 1, 2015, 1:17:53 PM12/1/15
to topshelf-discuss
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!

Captura.PNG

Manuel Muñoz

unread,
Dec 2, 2015, 4:20:21 AM12/2/15
to topshelf-discuss
Problem fixed, the development had two errors: bad configuration to DataBase, and a bug with the logger class which prevented to see the data base connection error.
Reply all
Reply to author
Forward
0 new messages