C# 服务部署 报System.InvalidOperationException异常该怎么处理?
Running a transacted installation.
Beginning the Install phase of the installation.
See the contents of the log file for the D:\DonetProject\LH.CPCD_Check\LH.CPCD_Check.exe assembly's progress.
The file is located at D:\DonetProject\LH.CPCD_Check\LH.CPCD_Check.InstallLog.
An exception occurred during the Install phase.
System.InvalidOperationException: Cannot open Service Control Manager on computer '.'. This operation might require other privileges.
The inner exception System.ComponentModel.Win32Exception was thrown with the following error message: Access is denied.
The Rollback phase of the installation is beginning.
See the contents of the log file for the D:\DonetProject\LH.CPCD_Check\LH.CPCD_Check.exe assembly's progress.
The file is located at D:\DonetProject\LH.CPCD_Check\LH.CPCD_Check.InstallLog.
The Rollback phase completed successfully.
The transacted install has completed.
环境是VS2010 WIN7
是远程部署在服务器上的。使用的管理员账号