Results 1 to 3 of 3
Hybrid View
-
11th September 2012 12:41 #1
o .
VS 2010, windows service, ProjectInstaller :
cannot start service from the command line or debuger....
, , .
? windows services /services.msc/? .
regsvcs, dll, exe?
--------- 12:41 --------- : 12:22 ---------
installutil release,
,
, :
An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: The account name is invalid or does not ex
ist, or the password is invalid for the account name specified
-
11th September 2012 12:43 #2
.
installutil ( ) - - "Setup project" solution-a output- .
Installer class . .
Main :
MyService , MyProcess , ,Code:static void Main(string[] args) { if (args.Count() == 0) { //Service Mode ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new MyService() }; ServiceBase.Run(ServicesToRun); } else { //Console Mode MyProcess process = new MyProcess(); Console.ReadLine(); process.Dispose(); } }: XaMaB; . 0.42
In God we Trust (all others must submit a X.509 certificate). , ()
-
11th September 2012 15:24 #3
.
.Code:serviceProcessInstaller.Account = ServiceAccount.LocalSystem;




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in