.net-core - 服务启动失败。验证您是否有足够的权限来启动系统服务
问题描述
我正在使用 VS2019,我已将我的 Windows 服务转换为 .netcore 3.1,并使用 WIX 创建了安装程序文件。我能够安装该服务,并且在手动启动该服务时它可以工作,但是在安装后自动启动时出现类似错误
服务启动失败。验证您是否有足够的权限来启动系统服务
我的 Coponent 代码如下,
<ServiceInstall
Id="ServiceInstaller"
Type="ownProcess"
Vital="yes"
Name="Django_DRAProcessorServiceTest"
DisplayName="Django_DRAProcessorServiceTest"
Description="Django_DRAProcessorServiceTest"
Start="auto"
Interactive="no"
ErrorControl="normal" >
<util:PermissionEx User="Authenticated Users"
ServiceStart="yes"
ServiceStop="yes"
ServicePauseContinue="yes"
ServiceInterrogate="yes"
ServiceChangeConfig="yes"
ServiceEnumerateDependents="yes"
ServiceQueryConfig="yes"
ServiceQueryStatus="yes"
ServiceUserDefinedControl="yes" />
<util:ServiceConfig FirstFailureActionType="restart" SecondFailureActionType="restart" ThirdFailureActionType="restart" />
</ServiceInstall>
<ServiceControl Id="Django_DRAProcessorService_Start"
Name="Django_DRAProcessorService"
Start="install"
Wait="no" />
<ServiceControl Id="Django_DRAProcessorService_Stop"
Name="Django_DRAProcessorService"
Stop="uninstall"
Remove="uninstall"`enter code here`
Wait="yes" />
我也给予了更高的特权。有什么我需要做的或enter code here
缺少什么。
解决方案
推荐阅读
- php - File_get_contents 无法打开流:http 请求失败 404 未找到
- magento-1.9 - PHP 致命错误未捕获错误:在 null 上调用成员函数 getMetaTitle()
- sql - 表结构问题 - Query Pivot/Unpivot
- excel - 使用 VBA 将 Excel 重命名为 CSV
- vb.net - 您是否必须在所有文本框实际填充之前显示每个选项卡?
- angular - Firebase 更改不会自动反映在页面上
- javascript - 是否可以在不从网页输入的情况下使用 Javascript 读取本地 csv 文件?
- javascript - 如何将克隆的 HTML 元素的参数值(尝试过 @FormParam;但不起作用)访问到 RESTful Web 服务?
- css - 照片库不相邻对齐
- datetime - 在 2 个不同的时间段之间搜索