Process.EnterDebugMode() throws an exception

Posted on 2011-10-02
Last Modified: 2012-05-12
I want to access some properties of processes beyond ID and ProcessName.
I also want to avoid try/catch delays with system-processes (which would throw an exception when I try to access most of their properties).
Calling Process.EnterDebugMode() should settle this issue, if I get it right.
However, when I call Process.EnterDebugMode() I get the following exception-message:
"Not all privileges or groups referenced are assigned to the caller".
This happens despite the fact that I am logged in as an administrator.
What should I do to get Process.EnterDebugMode() to work without throwing this exception?
Question by:gabik
    LVL 33

    Accepted Solution

    What kind of environment are you in - i.e. which Framework version; Windows Forms, WPF or Console application; ASP.Net Web Application; which operating system, and if Vista or later and UAC is not disabled are you running program elevated?

    Author Comment

    .NET 4
    Windows Forms
    Windows 7 64bit (the application is also compiled as 64bit)
    UAC not disabled, not running program elevated (to the best of my knowledge)
    however it is a full trust application

    Author Comment

    When running the program "as administrator" it all works fine.

    Author Closing Comment

    Of course the program should have been run elevated!
    I should have thought of it by myself, but obviously I did not :)

    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

    Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
    Article by: Ivo
    C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    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…

    746 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

    16 Experts available now in Live!

    Get 1:1 Help Now