Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows service not allow to shut down pc

Posted on 2007-11-29
4
Medium Priority
?
257 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

971 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