Topshelf server 2012 problems.

72 views
Skip to first unread message

Heinrich Kollner

unread,
May 26, 2014, 11:15:54 AM5/26/14
to topshelf...@googlegroups.com
Hi Guys,

I am currently experiencing a problem where my topshelf service does not start on windows server 2012.
I have installed it on windows server 2008R2, Windows 7 as well as windows 8 without a problem.

The exact same build does not work on server 2012.

Using the command line it installs without error. When I start the service in the services console I get this error immediately: 1053: Did not respond in a timely fashion.
I have tried everything suggested on the forums without success.

I have built in logging and when starting the service it does not even hit the Start() method. Once again this service works on all other servers except for server 2012.

Here's my start up method:

static void Main()
        {
            try
            {

                HostFactory.Run(x =>
                {
                    x.Service<ApplicationStartup>(s =>
                    {
                        s.ConstructUsing(name => new ApplicationStartup());
                        s.WhenStarted(tc => tc.Start());
                        s.WhenStopped(tc => tc.Stop());
                    });
                    x.RunAsLocalSystem();
                    x.StartManually();
                    x.SetDescription("REDDOTT SOLUTION ENGINE");
                    x.SetDisplayName("REDDOTT SOLUTION ENGINE");
                    x.SetServiceName("REDDOTTSOLUTIONENGINE");
                });
            }
            catch (Exception ex)
            {
                Logger.ErrorException("Main Registered an Exception.", ex);
                throw;
            }
        }

Thanks in advance.

Travis Smith

unread,
May 26, 2014, 9:03:13 PM5/26/14
to topshelf...@googlegroups.com
So that means something in your Start() method is jamming things up. If it wouldn't install, then we would know it's your setup. Can you share what your start is doing? Do you know how long it takes on most machines? 

-Travis


--
You received this message because you are subscribed to the Google Groups "topshelf-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topshelf-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kijana Woodard

unread,
May 27, 2014, 8:46:06 AM5/27/14
to topshelf...@googlegroups.com

Bah.

Replied on your first thread.

Reply all
Reply to author
Forward
0 new messages