Solved

What Type Should I specify For the Windows Service !

Posted on 2007-11-19
1
184 Views
Last Modified: 2013-12-17
HI,
I created a windows service in VS2005 using C#.
In that for the Project Installer i specified the TYPE as USER.
So everytime I Install the Service it asks for my Username and Password.
But now I want to deploy this service on to Production Server, So should I change the TYPE of my service to Network Service or Something else or is it OK if I will leave it to USER.
Please help me out in this.
Thank you.
0
Comment
Question by:srini4595
1 Comment
 
LVL 2

Accepted Solution

by:
auyuksel earned 500 total points
ID: 20314707
In your projectinstaller.cs  below lines should be placed in initializecomponent method .
this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
                  this.serviceProcessInstaller1.Password = null;
                  this.serviceProcessInstaller1.Username = null;

You can also do this using ServiceProcessInstaller properties window on your projectinstaller design page  
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now