I can't see my service in services page

52 views
Skip to first unread message

rmznbyk 1

unread,
Oct 31, 2017, 9:12:18 AM10/31/17
to topshelf-discuss
installutil winservicebackupwork1.exe
Microsoft (R) .NET Framework Installation utility Version 4.7.2046.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\-----------------WinServiceBackUpWork1\WinServiceBackUpWork1\bin\Debug\winservicebackupwork1.exe assembly's progress.
The file is located at C:-----------------------\WinServiceBackUpWork1\WinServiceBackUpWork1\bin\Debug\winservicebackupwork1.InstallLog.
Installing assembly 'C:\-------------------------\WinServiceBackUpWork1\WinServiceBackUpWork1\bin\Debug\winservicebackupwork1.exe'.
Affected parameters are:
   logtoconsole =
   logfile = C:\-------------------------------\WinServiceBackUpWork1\WinServiceBackUpWork1\bin\Debug\winservicebackupwork1.InstallLog
   assemblypath = C:\------------------------\WinServiceBackUpWork1\WinServiceBackUpWork1\bin\Debug\winservicebackupwork1.exe

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the C:---------------------------\WinServiceBackUpWork1\WinServiceBackUpWork1\bin\Debug\winservicebackupwork1.exe assembly's progress.
The file is located at C:\---------------------------------\WinServiceBackUpWork1\WinServiceBackUpWork1\bin\Debug\winservicebackupwork1.InstallLog.
Committing assembly 'C:\--------------------------------\WinServiceBackUpWork1\WinServiceBackUpWork1\bin\Debug\winservicebackupwork1.exe'.
Affected parameters are:
   logtoconsole =
   logfile = C:\----------------------------\WinServiceBackUpWork1\WinServiceBackUpWork1\bin\Debug\winservicebackupwork1.InstallLog
   assemblypath = C:\---------------------------\WinServiceBackUpWork1\WinServiceBackUpWork1\bin\Debug\winservicebackupwork1.exe

The Commit phase completed successfully.

The transacted install has completed.

This is what ı have when ı tried to install my service via CMD. AS ı can understand it started succesfully.But ı cant see my service inside services page.


namespace WinServiceBackUpWork1
{
    internal static class ConfigureService
    {
        internal static void Configure()
        {
            HostFactory.Run(configure =>
            {
                configure.Service<MyService>(service =>
                {
                    service.ConstructUsing(s => new MyService());
                    service.WhenStarted(s => s.Start());
                    service.WhenStopped(s => s.Stop());
                });
                //Setup Account that window service use to run.  
                configure.RunAsLocalSystem();
                configure.SetServiceName("MyWindowServiceWithTopshelf");
                configure.SetDisplayName("MyWindowServiceWithTopshelf");
                configure.SetDescription("My .Net windows service with Topshelf");
            });
        }
    }
}



public class Program
    {
        static void Main(string[] args)
        {
            ConfigureService.Configure();
            //Operation mainOperation = new Operation();
            //mainOperation.Zamanlayıcı();
            //Console.Read();
        }
    }

This is my configuration class. And main class. Please help. Why ı cant see my service inside services page although it is successfully installed.
Reply all
Reply to author
Forward
0 new messages