Results 1 to 8 of 8

Thread: Cant See my service in the services Services window

  1. #1
    groadsvb is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 3.5
    Join Date
    Nov 2006
    Posts
    75
    Reputation
    129

    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
    Herman is offline VB.NET Forum Idol
    .NET Framework
    .NET 4.0
    Join Date
    Oct 2011
    Location
    Montreal, QC, CA
    Posts
    865
    Reputation
    1211
    What does the event log tell you?

  3. #3
    groadsvb is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 3.5
    Join Date
    Nov 2006
    Posts
    75
    Reputation
    129
    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
    Herman is offline VB.NET Forum Idol
    .NET Framework
    .NET 4.0
    Join Date
    Oct 2011
    Location
    Montreal, QC, CA
    Posts
    865
    Reputation
    1211
    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
    groadsvb is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 3.5
    Join Date
    Nov 2006
    Posts
    75
    Reputation
    129
    If the service does not show up in my windows services list, how do I start it? Thanks.
    GAR

  6. #6
    Herman is offline VB.NET Forum Idol
    .NET Framework
    .NET 4.0
    Join Date
    Oct 2011
    Location
    Montreal, QC, CA
    Posts
    865
    Reputation
    1211
    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
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    15,080
    Reputation
    2802
    If you had the Services window open when installing you would have to Refresh it for a newly installed service to show up.

  8. #8
    groadsvb is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 3.5
    Join Date
    Nov 2006
    Posts
    75
    Reputation
    129
    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
  •