473,321 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Windows Service not getting installed

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(ServicesToRu n);
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????????

Nov 2 '06 #1
1 1283
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.

"rohan_from_mars" <ro******@gmail.comescribió en el mensaje
news:11**********************@h48g2000cwc.googlegr oups.com...
>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(ServicesToRu n);
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????????

Nov 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Michael Adkins | last post by:
I have a new ASP project that I need to desperately test on my Windows 2000 machine before posing to my Hosting Company. I am having problems getting the ASP pages to run from LocalHost. I will...
1
by: Rich Miller | last post by:
Previously posted on the VB newsgroup with no replies, so any ideas appreciated. I have written a service application in VB (VS.Net 2003). On start, the service creates an object that...
2
by: Dermot O'Loughlin | last post by:
I am trying to install a dotnet application using it's websetup msi dotnet application. I am getting the following error: The Windows Installer Service could not be accessed. This can occur if...
4
by: TomB | last post by:
I've written a simple service that reads the app.config file on start. It works fine if I start it from the VS IDE -- F5 then installutil I then created a package, wherein the content of...
2
by: Avinash | last post by:
Hi, I am facing problem with the use of the stackframe and stacktrace for the exception hadling with Windows service. Can any one please tell me how to use of the above objects (stackframe and...
3
by: Chuck Bowling | last post by:
Ok, I'm not sure this is a C# question but here goes anyhow... I used this walkthru to create a windows service: ...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
3
by: jwpaco | last post by:
I am new to services and I have quite the task. I need a windows service that will, once started, open a socket and listen for client connections. When a connection is made, the client will want...
7
by: michael sorens | last post by:
(1) I tried to use what seems like a standard line (from Walkthrough: Creating a Windows Service Application in the Component Designer at http://msdn2.microsoft.com/en-us/library/zt39148a.aspx): ...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.