Insights and outlooks on software development


Net Start and Error 5 - easy solution

Monday, August 4, 2008 by Thomas L

So there I was, humming along with my newly written windows service and all. After installing it with InstallUtil.exe, I tried to start the service with "Net Start MyService" and I got the error

System Error 5 has occurred
Access is Denied 

This link has info about the problem, suggesting that this is due to security issues. And, well, it was. 'Cause I have my dev environment in C:\Users\{myuser} and, well, that's kind of locked for the Network Service account. A small copy to c:\ before installing, and problem solved.

Filed under having  

0 kommentarer: