Scenario
I have a windows service written in C #. I read all google threads on how to debug it, but I still can't get it to work. I ran "PathTo.NetFramework \ InstallUtil.exe C: \ MyService.exe". He said that the installation was successful, but when I start "Services.msc", the service does not appear at all. If I went into the task manager, a process called "MyService.vshost.exe" will appear. Pretty sure that's not it, because it's a service, not a process.
Can someone explain to me?
If I should see the service when starting Services.msc? (Whereas all this is done on a local machine without AT ALL servers.
Other
I am running VS2008.
EDIT:
All this is done on my local computer, I do not have servers or do not have access to them. In addition, I donβt even know what the service does, I want to debug it so that I can skip the code and see how it all works (the code is inside the service, not the service itself - for any of you smart pants that I can offer look at the template).
EDIT 2:
UNDER ANY CIRCUMSTANCES! Every time I try to get something, I get a message about the need to use NET START or install the service.
EDIT 3:
I am running VS2008.
I typed this: C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ InstallUtil.exe C: \ dev \ Restarter \ bin \ Release \ Restarter.exe
I got this: Microsoft.NET Framework.NET 2.0.050727.3053 Installation Utility Copyright (c) Microsoft Corporation. All rights reserved.
Starting a transactional installation.
Beginning of the installation phase. See Log File Contents for C: \ dev \ Restarter \ bin \ Release \ Restarter.exe. The file is located in the C: \ dev \ Restarter \ bin \ Release \ EDT.Restar ter.InstallLog directory. Installing the assembly 'C: \ dev \ Restarter \ bin \ Release \ Restarter.exe'. Parameters affected are: logtoconsole = assemblypath = C: \ dev \ Restarter \ bin \ Release \ Restarter.exe logfile = C: \ dev \ Restarter \ bin \ Release \ Restarter.InstallLog
The installation phase has completed successfully and the fixing phase begins. See Log File Contents for C: \ dev \ Restarter \ bin \ Release \ Restarter.exe. The file is located in the C: \ dev \ Restarter \ bin \ Release \ Restar ter.InstallLog directory. Committing assembly 'C: \ dev \ Restarter \ bin \ Release \ Restarter.exe'. Parameters affected are: logtoconsole = assemblypath = C: \ dev \ Restarter \ bin \ Release \ Restarter.exe logfile = C: \ dev \ Restarter \ bin \ Release \ Restarter.InstallLog
Successful phase completed.
Completed transaction completed.
C: \ Program Files \ Microsoft Visual Studio 9.0 \ VC>
Then I went to RUN β Services.msc I can not see anything there.
There is a process called "Restarter.vshost.exe" in the task manager.
What is it.
I just wanted to install and debug it. I know that it works (because it works and does not crash). But the code was written by a friend, and I want to understand the basic code by going through it in debug mode.