I am using VS2019 and i have converted my windows service to .netcore 3.1 and created installer file using WIX. I was able to install the service and while starting the service manualy it works, but when starting automatically after installation getting an error like
Service is failed to start. Verify that you have sufficient privileges to start the system services
My Coponent code is below,
<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" />
I have also given elevated privilages. Is there anything that i need to do or aenter code here
nything missing.