Currently the service is not in an installable state. We have to add the proper components to allow the .NET Framework to install the service and make it compatible with the Win32 subsystem. In the Solution Explorer, right-click Tutorials.vb and select View Designer.
In the Toolbox, expand the Components section and then drag a ServiceController onto the Tutorials.vb design surface.
If you do not see the Toolbox, click Toolbox on the View menu.
After you add the control, you will see it on the designer surface as ServiceController1. ...