.NET Framework Developer Center > .NET Development Forums > .NET Framework Setup > Windows service not showing up in service manager
Ask a questionAsk a question
 

AnswerWindows service not showing up in service manager

  • Tuesday, November 03, 2009 9:02 AMNSJ SL Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I wrote a WindowsService application using C# on .NET 3.5, there I used a project installer and set up program to package the application.

    When I installed this, it worked well, succefullyt installed and event viewer says it success. When I goto add/remove Programs on the contro pannel there it shows the applicaiton to remove.
    BUT, this is not showing up in the Service Manager.. Can someone please help me to fix this?

    NOTE: I have tested this applicaion through a test clinent application (Windows Forms app) and there I didn't find any issues.

    Thx

     

     

Answers

  • Tuesday, November 03, 2009 9:34 AMMarcel Roma Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Try to install the service manually by running InstallUtil.exe:

    %windir%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe [YourSvc.exe]

    If this succeeds, than you have a problem with your setup project that needs to be investigated. If the command fails use the logging switches of InstallUtil to get more information. 
    • Marked As Answer byNSJ SL Tuesday, November 03, 2009 10:08 AM
    •  

All Replies

  • Tuesday, November 03, 2009 9:34 AMMarcel Roma Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Try to install the service manually by running InstallUtil.exe:

    %windir%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe [YourSvc.exe]

    If this succeeds, than you have a problem with your setup project that needs to be investigated. If the command fails use the logging switches of InstallUtil to get more information. 
    • Marked As Answer byNSJ SL Tuesday, November 03, 2009 10:08 AM
    •  
  • Tuesday, November 03, 2009 10:08 AMNSJ SL Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thx Marcel,

    IstallUtill was able to add the service to the service manager...
    Noe I'm loking at the installer project to isloate the issue.

    Appreciate your advice...