启动服务后不显示 JIT 调试器对话框窗口
我目前正在开发一个 Windows 服务,通过 installutil.exe 安装该服务后,当我在 services.msc 中启动该服务时,没有 JIT 窗口指示我是否想要调试它。
一旦服务运行并在 Visual Studio 中尝试“附加到进程”,它会显示类似无法附加到进程的错误。 Visual Studio 没有足够的权限来调试此进程。要调试此进程,必须以管理员身份运行 Visual Studio。尽管我是本地管理员。
我的问题与 MSDN 线程。 但我使用的是 Visual Studio 2008。在此处发布此问题后,我尝试了所有可能的解决方案。
我尝试
- 将
添加到我的配置文件中, - 检查工具->选项->调试
- 检查注册表设置
- 以管理员身份运行 Visual Studio 2008,附该过程仍然抛出权限不足的错误。
有什么想法吗? 我希望有人能帮助我。
谢谢, 宣威
I am currently working on a windows service, after installing the service via installutil.exe, as I start the service in services.msc there's no JIT window indication if I would want to debug it or not.
And once the service is running and tried the "Attached to process" in visual studio, It will say an error like Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator. Eventhough I'm an administrator in my Local.
My problem is similar in this thread on MSDN thread.
But I am using Visual Studio 2008. I've tried all possible solution after posting this questiion here.
I've tried
- adding
<system.windows.forms jitdebugging=true/>
to my config file - checking Tools->Options->Debugging
- checking registry settings
- run visual studio 2008 as administrator, attached the process and still throwing the insufficient priveleges error.
Any ideas?
I Hope someone could help me.
Thanks,
Sherwin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需执行错误消息所示的操作即可 - 以管理员身份运行 Visual Studio。为此,请右键单击开始菜单中的 Visual Studio 图标,然后选择选项“以管理员身份运行”。
Just do what the error message is saying -- run Visual Studio as administrator. To do that, right click on Visual Studio icon in start menu and select option "Run as administrator".