Windows Server 2016 - Windows Services - Permissions issues (Changes from 2012?)

S

ScarpacciDev

Hi all,

We have a legacy application that recently got deployed on a Windows 2016 instance. We are encountering access denied errors that we did not see when it was hosted on a Windows 2012 box.

There are custom services we developed in .Net (C#). One that processes data and the other that monitors the application that is processing the data. If the monitor observes issues with the application, it will restart the service that is running the application. This has worked fine for years and there have not been any changes (for 4 years). The only thing we can think of is that there were some changes with the new OS that is causing access problems. The services run under the same service account and the account has permissions to start/stop services.

If there weren't any changes with that OS, then there must be another configuration issue on the machine related to the service account (general permission, folder access, etc.)

Error:

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545} </style>

System.ComponentModel.Win32Exception: Access is denied
---
End of inner exception stack trace ---
at
System.ServiceProcess.ServiceController.GetServiceHandle(Int32 desiredAccess)
at
System.ServiceProcess.ServiceController.Start(String[] args)
at
System.ServiceProcess.ServiceController.Start()
at
DacMonitor.Monitor.StartService(String serviceName, Int32 timeoutMilliseconds)


Continue reading...
 
Back
Top Bottom