Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Windows service not allow to shut down pc

Posted on 2007-11-29
4
234 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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