关于C#中的WINDOWS服务
我正在看《C#高级编程》,里面的第22章“WINDOWS服务“中的例子安装时出现了错误。
添加的安装类如下:
public class ProjectInstaller : System.Configuration.Install.Installer
{
private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller1;
private System.ServiceProcess.ServiceInstaller serviceInstaller1;
...
private void InitializeComponent()
{
...
this.serviceProcessInstaller1.Password = null;
this.serviceProcessInstaller1.Username = null;
...
}
...
}
其中serviceProcessInstaller1的Account属性设置为User.
在安装(installutil quoteService.exe)过程中,弹出一对话框要求输入
帐号和密码,我把能登陆我的机子的帐户和密码输入,竟产生安装错误:
...
在“安装”阶段发生异常。
System.ComponentModel.Win32Exception: 帐户名无效或不存在,或者密码对于指定的帐户
名无效。
...
请问这里的帐号和密码到底是指什么样的帐户和密码?