zl程序教程

您现在的位置是:首页 >  系统

当前栏目

Windows Service installutil 部署时,出错的解决办法-原创

Windows部署 解决办法 Service 原创 出错
2023-09-11 14:21:33 时间

出错信息如下:

----------------------------------------------------------

~~~~~...

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed.

-------------------------------------------------------------

解决办法:

1. 右键 developer command prompt for vs2012

2. 选择管理员方式运行

3. 输入 cd "c:\Program Files (x86)\M
icrosoft Visual Studio 11.0"

4. installutil "你要发布的windowsService.exe"

5. 成功部署 :)

The Commit phase completed successfully.

The transacted install has completed.

 

另外注意: Timer控件引用 System.Timers.Timer