Solved

Windows service not allow to shut down pc

Posted on 2007-11-29
4
239 Views
Last Modified: 2010-04-15
I have windows service crated in C#
I am showing form through it, which updates the user about changes done by service.
But my problem is that if my service is running am not able to shut down my pc
My operating system is windows xp
0
Comment
Question by:RETAILREALM
  • 3
4 Comments
 
LVL 9

Accepted Solution

by:
the_b1ackfox earned 500 total points
ID: 20380403
I did this once before.  Is your service doing anything with the close event or closing event?
0
 

Author Comment

by:RETAILREALM
ID: 20380532
No
0
 
LVL 9

Expert Comment

by:the_b1ackfox
ID: 20380542
does the user profile have admin access to shut down window services?
0
 
LVL 9

Expert Comment

by:the_b1ackfox
ID: 20414460
I think we need more information to diagnose whats going on with your program.  
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question