windows service

I

Ivan G.

Hi

I'm just playing with Visual Studio 2003 trying to write simple windows
service. I've created user service, installer and msi package, my cool
service appeared in MMC service list. But when I try to start it following
message appears:

What's wrong?

P.S. Working uder Windows 2003 Server.
 
I

Ivan G.

Sorry, message is:
Application popup: JIT Debugging : JIT Debugging failed with the following
error: Access is denied.

JIT Debugging was initiated by the user account 'NT AUTHORITY\NETWORK
SERVICE'.

Check the documentation index for 'Just-in-time debugging, errors' for more
information.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
 
J

Jared Parsons [MSFT]

Are you calling System.Diagnostics.Debugger.Break() in your code? That
seems like the most likely cause of your error. To access the debugger like
that the user you are running your service under must be in the Debuggers
group. Try running the service under your account (which I assume is in the
debugger group) and see if you still have the same problem.

--
Jared Parson [MSFT]
(e-mail address removed)

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
I

Ivan G.

Thanks, you're right!

I've created new user with debugging previledges and run service under it,
now it works.

Jared Parsons said:
Are you calling System.Diagnostics.Debugger.Break() in your code? That
seems like the most likely cause of your error. To access the debugger like
that the user you are running your service under must be in the Debuggers
group. Try running the service under your account (which I assume is in the
debugger group) and see if you still have the same problem.

--
Jared Parson [MSFT]
(e-mail address removed)

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Ivan G. said:
Sorry, message is:
Application popup: JIT Debugging : JIT Debugging failed with the following
error: Access is denied.

JIT Debugging was initiated by the user account 'NT AUTHORITY\NETWORK
SERVICE'.

Check the documentation index for 'Just-in-time debugging, errors' for
more
information.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top