Solved

What Type Should I specify For the Windows Service !

Posted on 2007-11-19
1
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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