title: Killing a Windows process from a C# console application: how do I set permissions?
body: <p>Using <code>Process.Kill()</code> from an ASP.NET web application, I get a Win32Exception with text "Access is denied".</p>
  
  <p>Searching the web has several times told me to set permissions.  However I don't really understand the Windows XP User system well enough to know how to get started.</p>
  
  <p>At the time the exception is thrown, <code>Thread.CurrentPrincipal.Identity</code> has the following visible properties:</p>
  
  <ol>
  <li>AuthenticationType = ""</li>
  <li>IsAuthenticated = "false"</li>
  <li>Name = ""</li>
  </ol>
  
  <p><code>WindowsIdentity.GetCurrent()</code> shows me logged in as "NAME\ASPNET" but I don't think that this is relevant.</p>
  
  <p>What do I need to do?  Can I somehow get the thread to log in as some Windows user?</p>