Windows服务没有开始
Hi Team,
我正在尝试运行用c#编写的Windows服务。虽然我在我的系统中安装后尝试启动服务我是得到以下错误消息
[窗口标题]
Visual Studio即时调试器
[主要说明]
FonterraService.exe [4412]发生未处理的异常('System.Security.SecurityException')。
即时调试器是在没有必要安全权限的情况下启动的。要调试此过程,必须以管理员身份运行实时调试程序。你想调试这个过程吗?
[V]查看流程详情[是的,调试FonterraService.exe] [不,取消调试]
[扩展信息]
流程名称:FonterraService.exe
用户名:LOCAL SERVICE
请帮帮我。
Hi Team,
I am trying to run windows service which has written in c#.While i try to start the service once i install in my system i am getting the following error message
[Window Title]
Visual Studio Just-In-Time Debugger
[Main Instruction]
An unhandled exception ('System.Security.SecurityException') occurred in FonterraService.exe [4412].
The Just-In-Time debugger was launched without necessary security permissions. To debug this process, the Just-In-Time debugger must be run as an Administrator. Would you like to debug this process?
[V] View process details [Yes, debug FonterraService.exe] [No, cancel debugging]
[Expanded Information]
Process Name: FonterraService.exe
User Name: LOCAL SERVICE
Please help me out.
错误告诉你问题,实际上有两个:
1你已经在调试模式下安装了服务而不是发布
2.你运行它的帐户无权调试(甚至可能启动)服务。
干杯
The error tells you the problem, there are two actually:
1. you've installed the service in debug mode instead of release
2. the account under which you're running it has no rights to debug (or maybe even start) the service.
Cheers
Hi Sinisa Hajnal,
感谢您的回复.Have美好的一天。:)
Hi Sinisa Hajnal,
Thanks for your reply.Have a great day.:)