Windows Service not getting installed

  • Thread starter rohan_from_mars
  • Start date
R

rohan_from_mars

I have a Windows Service Application having 2 windows service classes.
In the first one I have this stmt:

ServicesToRun = new System.ServiceProcess.ServiceBase[] { new
RequestProcessorService(), new EmailSenderService()};
System.ServiceProcess.ServiceBase.Run(ServicesToRun);


inside the main function of RequestProcessorService class.

The solution got built without any error.
now when I use the installutil utility to install the Service, it shows
commit phase completed successfully but still I cannot find the service
listed under Services in Adminintrative tools.


what is the problem????????
 
R

RAlvare

I'm not an expert, but I'd suggest to check the windows event log ,
previously having a constructor for your service class with this.AutoLog =
true

This way you can see if there is some info in the windows event log that
could help,
after the service had failed its initialization.

partial class YourService : ServiceBase

{

public YourService()

{

InitializeComponent();

this.ServiceName = "the name of your service";


this.AutoLog = true;


}

}

RAlvare.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top