Solved

What Type Should I specify For the Windows Service !

Posted on 2007-11-19
1
187 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…

856 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