系统错误5访问开始.NET服务时被拒绝 [英] System error 5 Access is denied when starting a .NET service

查看:180
本文介绍了系统错误5访问开始.NET服务时被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试启动我在Visual Studio中我收到以下错误创建一个服务:

When I try to start a service I created in Visual Studio I receive the following error:

System error 5 has occurred.

Access is denied.

我正在运行使用提升权限的命令行,所以它不是这个问题。有没有什么地方我可以看看,看看有什么错误正在发生。

I am running the command line with elevated privileges, so it's not that problem. Is there any place I can look to see what error is occuring.

推荐答案

要得到它的工作,我需要权限添加到出纸槽\ debug文件夹为我服务的项目。

To get it to work I needed to add permissions to the output bin\debug folder for my service project.

本地服务帐户没有权限到输出.exe文件,这是为什么错误是存在的。

The Local Service account didn't have permissions to the output .exe file, and this was why the error was occuring.

这篇关于系统错误5访问开始.NET服务时被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆