?
Solved

What Type Should I specify For the Windows Service !

Posted on 2007-11-19
1
Medium Priority
?
190 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 1500 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

How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

777 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