5
我正尝试使用Visual Studio 2008安装和部署项目来安装我的Windows服务应用程序。我创建了一个具有“作为服务运行”的用户帐户,并将ServiceProcessInstaller.Account设置为System.ServiceProcess.ServiceAccount.User,并将用户名和密码设置为之前创建的用户。我的Windows服务应用程序安装项目中的错误1001
spInstaller.Account = System.ServiceProcess.ServiceAccount.User;
spInstaller.Username = "USER NAME";
spInstaller.Password = "PASSWORD";
sInstaller.ServiceName = "SERVICE NAME";
sInstaller.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
但在安装过程中,我得到以下错误:
错误:1001帐户名无效或者不存在,或者帐户名指定
密码无效任何想法,为什么我得到这个错误,我该如何解决它? 谢谢。
没有upvotes的接受让我成为一只伤心的熊猫。 – 2009-04-26 12:52:35