Re: Starting a process (.exe-file) from ASP.NET with different user credentials

From: Scott Allen (bitmask_at_[nospam)
Date: 09/10/04


Date: Fri, 10 Sep 2004 10:56:19 -0400

Hi Jørn A.:

Yes, when a new process spawns it always takes the identity of the
host process and not the identity of the thread you launch from.

The only real way to get this to work in 1.1 is to PInvoke
CreateProcessWithLogonW. If you are trying to launch a GUI application
however, you are going to run into problems since ASPNET runs in a non
interactive desktop.

--
Scott
http://www.OdeToCode.com
On Fri, 10 Sep 2004 15:23:52 +0200, "Jørn A."
<nospamwanted@nospam.com> wrote:
>It seems like System.Diagnostics.Process.Start() still runs as the ASPNET 
>account.
>
>-Jørn A.
>
>


Relevant Pages

  • Re: Access denied...
    ... Security and add ASPNET to the Launch and Access permissions list. ... Microsoft.Office.Interop.Word.Application app = new ...
    (microsoft.public.dotnet.framework.aspnet)
  • modifying registry for launch and access permission
    ... I need my application to launch quickbooks and do what it has to ... The COM object will need to have the launch and access permissions modified ... to include ASPNET and INTERACTIVE. ...
    (microsoft.public.windowsxp.customize)
  • modifying registry for launch and access permission
    ... I need my application to launch quickbooks and do what it has to ... The COM object will need to have the launch and access permissions modified ... to include ASPNET and INTERACTIVE. ...
    (microsoft.public.windowsxp.general)
  • MS Word & ASP.NET web services
    ... Does anybody know how to launch MS Word application from ASP.NET webservice ... I'm receiving AccessDenied exception. ... What could be wrong with access rights if ASPNET and internet guest ...
    (microsoft.public.dotnet.framework.aspnet.security)