Solved

Windows service not allow to shut down pc

Posted on 2007-11-29
4
202 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
Comment Utility
I did this once before.  Is your service doing anything with the close event or closing event?
0
 

Author Comment

by:RETAILREALM
Comment Utility
No
0
 
LVL 9

Expert Comment

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

Expert Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Good resource for accessibility implementation 1 42
C# primary key 9 53
Image(7) 1 33
fomat Json objects 6 15
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…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now