Cannot Install Windows Service in Vista

J

James

HI, I am trying to install a very basic service in windows Vista. I am using
VS2008 with c#3.5 and when I have built the service and then select install
it always pops up with a login dialog (which never accepts my password or
username) I have disabled UAC and still could not install the service. I am
a little lost so could you please point me in the right direction..

TIA
James
http://www.software-dungeon.co.uk
 
M

Morten Wennevik [C# MVP]

Hi James,

To be able to run a windows service, the user needs to have the "Log on as a
service" rights.

http://technet.microsoft.com/en-us/library/cc783342(WS.10).aspx

To grant this right edit the Local Security Settings -> Local Policies ->
User Rights Assignment -> Log on as a service

http://technet.microsoft.com/en-us/library/cc736516(WS.10).aspx

If you already have this right, if it is a domain user, make sure you add
the domain before the username in the setup dialog. <domain>\<username>.
You may also try to add the computername before the username if it isn't a
domain account.

If it is a domain account, you may have to edit the right on the domain
server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top