Score:0

Why does Console App start when user runs it, but does not run when run as a windows service under the same user account (Access Denied)?

cn flag

I have a console application that can be run when a user executes it via the Windows Start Menu; however, if that same application is wrapped into a Windows Service and the same user account is used to run it the Service fails to start with the error "5: Access Denied".

Here are some additional details:

  • User account has Log on as a service property set
  • No log file is created so the error occurs before the binary can even start
  • There are User-mapped drives but I don't believe the application is referencing them. (is there any way to check?)
  • Windows Event view does not appear to give any additional details besides echoing the 5:Access Denied
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.