[ASAP] .net service under win2k

S

Sam Johnson

Hi
I developed a VB .net service under winxp and everything
(running, installation, etc.) works fine. Now, I wanted to
install it under win2k (with admin rights), but the
installation fails (german):

An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: Der Kontenname ist
unzulässig oder nicht vorhanden, oder das Kennwort ist für
den angegebenen Kontennamen ungültig

(translation: Your service name is not acceptable, not
available or the password for the service is invalid.)

Can anyone help me?

Sam
 
J

José Joye

Under which account do you run your service?

If you do not use the "System" one, make sure the following is done in
ProjectInstaller.InitializeComponent:

//
// serviceProcessInstaller1
//
this.serviceProcessInstaller1.Account =
System.ServiceProcess.ServiceAccount.User;
this.serviceProcessInstaller1.Password = "YourPassword"; // or enter it at
installation time........
this.serviceProcessInstaller1.Username = Environment.MachineName +
@"\BV2004Service";

José

"Sam Johnson" <[email protected]> a écrit dans le message
de Hi
I developed a VB .net service under winxp and everything
(running, installation, etc.) works fine. Now, I wanted to
install it under win2k (with admin rights), but the
installation fails (german):

An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: Der Kontenname ist
unzulässig oder nicht vorhanden, oder das Kennwort ist für
den angegebenen Kontennamen ungültig

(translation: Your service name is not acceptable, not
available or the password for the service is invalid.)

Can anyone help me?

Sam
 

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