NT AUTHORITY/LOCAL SERVICE

本文介绍了一位开发者在使用C#.Net框架创建Windows服务应用程序时遇到的问题:尝试从控制面板启动服务时出现JIT调试失败的错误。文章探讨了可能的原因,并提供了解决方案,包括更改服务登录账户及确保当前账户属于DebuggerUsers组。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I am making a Windows service application using the C# .Net framework.

I have installed the setup and when I try to start my service from the Services in the Administrative tools in control panel, I get the following error:

JIT Debugging failed with the following error: Access is denied.

JIT Debugging was initiated by the user account 'NT AUTHORITY/LOCAL SERVICE'.

Please give me any clues how to debug the JIT error.

Thank you.

Under your service's properties, go to the log on tab and try logging on with your current user account, then try starting the service. Also make sure your account is part of the Debugger Users account. I'm guessing that you're getting an access denied error on the service because the NT AUTHORITY accounts tend to be much more powerful than the user ones and perhaps it doesn't. However, this is only a guess, so treat it as such. :)
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值