From: Tony Johansson on 4 May 2010 19:05 Hi! I use a user name and a password when I logg in to my personel computer. I have set Account to User in the property for ServiceProcessInstaller. My assembly for this service is called MonitorWebSite.exe When I install the service I use installutit /i MonitorWebSite.exe When I do this I get a small dialog with three textboxes. The first one is where I enter the username. The second is where I enter the password. The third is where I confirm the password. I use the same username and password in this small dialog as I do when I logg in but here I get an error it says An exception occurred during installation System.ComponentModel.Win32Exception: The accountname does not exist or is invalid or is the given password not valid for this account name I know that this account and password is correct because I use them when I logg in to the computer. So my question is why can't I use the same username and password as I do when I logg in to the computer ? //Tony
From: Arne Vajhøj on 4 May 2010 19:49 On 04-05-2010 19:05, Tony Johansson wrote: > I use a user name and a password when I logg in to my personel computer. > I have set Account to User in the property for ServiceProcessInstaller. > My assembly for this service is called MonitorWebSite.exe > > When I install the service I use installutit /i MonitorWebSite.exe > When I do this I get a small dialog with three textboxes. > The first one is where I enter the username. > The second is where I enter the password. > The third is where I confirm the password. > > I use the same username and password in this small dialog as I do when I > logg in > but here I get an error it says > An exception occurred during installation > System.ComponentModel.Win32Exception: The accountname does not exist or is > invalid > or is the given password not valid for this account name > > I know that this account and password is correct because I use them when I > logg in to the computer. > > So my question is why can't I use the same username and password as I do > when I logg in to the computer ? This does not sound particular C# related ... Can it be that you need to specify domain YOURDOMAIN\yourusername ? Arne
From: Alberto Poblacion on 4 May 2010 19:56 "Tony Johansson" <johansson.andersson(a)telia.com> wrote in message news:uMW0Q596KHA.2220(a)TK2MSFTNGP04.phx.gbl... > So my question is why can't I use the same username and password as I do > when I logg in to the computer ? Have you verified that this User has the "Log On as a Service" permission?
From: Tony Johansson on 4 May 2010 20:07 "Alberto Poblacion" <earthling-quitaestoparacontestar(a)poblacion.org> skrev i meddelandet news:edLo4V%236KHA.5476(a)TK2MSFTNGP06.phx.gbl... > "Tony Johansson" <johansson.andersson(a)telia.com> wrote in message > news:uMW0Q596KHA.2220(a)TK2MSFTNGP04.phx.gbl... >> So my question is why can't I use the same username and password as I do >> when I logg in to the computer ? > > Have you verified that this User has the "Log On as a Service" > permission? > It's my account and I'm an administrator on my own computer I mean if I'm an administrator I have all the privs that is nesessary //Tony
From: Tony Johansson on 4 May 2010 21:11
"Tony Johansson" <johansson.andersson(a)telia.com> skrev i meddelandet news:%23ZSL3b%236KHA.3924(a)TK2MSFTNGP04.phx.gbl... > "Alberto Poblacion" <earthling-quitaestoparacontestar(a)poblacion.org> skrev > i meddelandet news:edLo4V%236KHA.5476(a)TK2MSFTNGP06.phx.gbl... >> "Tony Johansson" <johansson.andersson(a)telia.com> wrote in message >> news:uMW0Q596KHA.2220(a)TK2MSFTNGP04.phx.gbl... >>> So my question is why can't I use the same username and password as I do >>> when I logg in to the computer ? >> >> Have you verified that this User has the "Log On as a Service" >> permission? >> > > It's my account and I'm an administrator on my own computer > I mean if I'm an administrator I have all the privs that is nesessary > > //Tony It's work now because I had to add myself in a group that could run window services //Tony |