Results 1 to 11 of 11

Thread: Cant See my service in the services Services window

  1. #1
    .NET Framework
    .NET 3.5
    Join Date
    Nov 2006
    Posts
    75
    Reputation
    150

    Cant See my service in the services Services window

    I am using windows 7 professional, VS2010 and I created a simple service just to learn how to do it.
    In the project properties I have the application type as Windows service. the assembly name and Root Namespace are the same. the Startup Oject is service1.
    The compile panel has Platform as Active (86). I did change the advanced compile option to target .NET framework 4.

    I can build with no errors. The path is to bin\Debug.

    I change to the bin\debug folder where the .exe is built and I run the installutil utility which is successful but my service does not show in my windows services so that I can start it.

    What am I missing?
    GAR

  2. #2
    .NET Framework
    .NET 4.0
    Join Date
    Oct 2011
    Location
    Montreal, QC, CA
    Posts
    867
    Reputation
    1232
    What does the event log tell you?

  3. #3
    .NET Framework
    .NET 3.5
    Join Date
    Nov 2006
    Posts
    75
    Reputation
    150
    Please excuse my ignorance but this it what I checked the InstallUtil.InstallLog and see the text below:

    Beginning the Install phase of the installation.
    See the contents of the log file for the C:\Users\grhod\Documents\Visual Studio 2010\Projects\CicWebRequest\CicWebRequest\bin\Debu g\CicWebRequest.exe assembly's progress.
    The file is located at C:\Users\grhod\Documents\Visual Studio 2010\Projects\CicWebRequest\CicWebRequest\bin\Debu g\CicWebRequest.InstallLog.

    The Install phase completed successfully, and the Commit phase is beginning.
    See the contents of the log file for the C:\Users\grhod\Documents\Visual Studio 2010\Projects\CicWebRequest\CicWebRequest\bin\Debu g\CicWebRequest.exe assembly's progress.
    The file is located at C:\Users\grhod\Documents\Visual Studio 2010\Projects\CicWebRequest\CicWebRequest\bin\Debu g\CicWebRequest.InstallLog.
    The Commit phase completed successfully.
    The transacted install has completed.
    I looked at the event viewer and did not find anything. Are there any other event logs that you were refering too? Thanks.
    GAR

  4. #4
    .NET Framework
    .NET 4.0
    Join Date
    Oct 2011
    Location
    Montreal, QC, CA
    Posts
    867
    Reputation
    1232
    The event log should show you an error if the service controller failed to start your service. If there is nothing it means either that the service controller never attempted to start it or that it starts just fines and possible crashes later.

  5. #5
    .NET Framework
    .NET 3.5
    Join Date
    Nov 2006
    Posts
    75
    Reputation
    150
    If the service does not show up in my windows services list, how do I start it? Thanks.
    GAR

  6. #6
    .NET Framework
    .NET 4.0
    Join Date
    Oct 2011
    Location
    Montreal, QC, CA
    Posts
    867
    Reputation
    1232
    If it isn't in the services list then it isn't installed. Have a look here:


    How to create a Windows service by using Sc.exe

  7. #7
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    15,214
    Reputation
    2862
    If you had the Services window open when installing you would have to Refresh it for a newly installed service to show up.
    [xcode=vb] code here [/xcode] - see bbcode list or use formatting buttons in posting editor.

    Visual Studio Community 2017

  8. #8
    .NET Framework
    .NET 3.5
    Join Date
    Nov 2006
    Posts
    75
    Reputation
    150
    Quote Originally Posted by JohnH View Post
    If you had the Services window open when installing you would have to Refresh it for a newly installed service to show up.
    To all that helped me through this I thank you. I got it. My service was actually showing as the default name "service1". I know now about the SeriveInstaller and ServiceProcessInstaller. Thanks for your input. I will continue my quest to learn this .net universe one project at a time.
    GAR

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •