serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
已解决
serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem
lz调试一下吧,这个错误可能出现在访问某个资源上
也可以修改下启动服务的用户账号
已解决
serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem