安装windows服务程序时遇到的问题 自己按着书上写了自编了一个windows服务程序,但是在使用installutil安装时提示出错:在“安装”阶段发生异常。System.ComponentModel.Win32Exception: 帐户名无效或不存在,或者密码对于指定的帐户名无效。请达人指点 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你的帐号是怎么设置的?设置成localsystem再试试?安装程序是怎么做的 安装文件为Windows服务的正确安装做好了工作,它包括了一个Windows服务的安装类,该类是重System.Configuration.Install.Installer继承过来的。安装类中包括了Windows服务运行所需的帐号信息,用户名、密码信息以及Windows服务的名称,启动方式等信息。 // 设定ServiceProcessInstaller对象的帐号、用户名和密码等信息 this.spInstaller.Account = System.ServiceProcess.ServiceAccount.LocalSystem; this.spInstaller.Username = null; this.spInstaller.Password = null; // 设定服务名称 this.sInstaller.ServiceName = "FileMonitorService"; // 设定服务的启动方式 this.sInstaller.StartType = System.ServiceProcess.ServiceStartMode.Automatic; 刚刚Account 改成 LocalSystem就好了,可是书上说要设置为LocalService的说,奇怪了 datatable 过滤重复数据,数量和金额累计的问题,在线等!!! C#水晶报表如何使用 高粉请教 webBrowser 虚拟网页来路 WebService异步调用中的超时设置问题。 请教高手有关于C#模拟IE,向服务器提交资料的程序 关于组件开发中遇到的问题,请高手指教? 简单问题求助(菜鸟) C# web 程序实现画图 如何在TreeView中添加图标? 求救,如何执行多条sql??? 跪求ActiveReports for .net注册码 我自己写了一个简单的mp3播放器, 我想在运行时, 也启动 "迷你歌词"这个软件 , 像winamp 一样. 这样我就可以一边听歌
// 设定ServiceProcessInstaller对象的帐号、用户名和密码等信息 this.spInstaller.Account = System.ServiceProcess.ServiceAccount.LocalSystem; this.spInstaller.Username = null; this.spInstaller.Password = null; // 设定服务名称 this.sInstaller.ServiceName = "FileMonitorService"; // 设定服务的启动方式 this.sInstaller.StartType = System.ServiceProcess.ServiceStartMode.Automatic;