howto launch an executable from an aspx page

Discussion in 'ASP .Net' started by Abraham Andres Luna, Feb 17, 2006.

  1. hello everyone,
    i am having a hard time launching an executable from an aspx page.
    i have already setup impersonation in the web.config file like so:
    <?xml version="1.0"?>
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    <identity impersonate="true" userName="DOMAIN/USERNAME"
    password="PASSWORD" />
    </system.web>
    </configuration>

    this is the page code:
    Process.Start(@"C:\RDK\Software\RDK.Reports\bin\RDK.Reports.exe");

    i can see RDK.Reports.exe show up in the process list, but then the JIT
    debugger pops up
    i also noticed that it doesn't seem to impersonate the user. it launches the
    exe as the ASPNET account

    thank you for your help,
    abraham luna
     
    Abraham Andres Luna, Feb 17, 2006
    #1
    1. Advertising

  2. The process is starting up on your server not within the interactive session
    launched by the browser. Likely you are running your sever (IIS or Webdev
    (Cassini) on the same machine as your browser so you see the process, but it
    is not running within your interactive session.

    Lauching an executable directly from the browser is very difficult. Think of
    all of the security issues that would come to light if you could do this?

    Hope this is of some help

    --

    Andrew Robinson
    http://blog.binaryocean.com


    "Abraham Andres Luna" <> wrote in message
    news:edPPX3$...
    > hello everyone,
    > i am having a hard time launching an executable from an aspx page.
    > i have already setup impersonation in the web.config file like so:
    > <?xml version="1.0"?>
    > <configuration
    > xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    > <system.web>
    > <authorization>
    > <allow users="*" />
    > </authorization>
    > <identity impersonate="true" userName="DOMAIN/USERNAME"
    > password="PASSWORD" />
    > </system.web>
    > </configuration>
    >
    > this is the page code:
    > Process.Start(@"C:\RDK\Software\RDK.Reports\bin\RDK.Reports.exe");
    >
    > i can see RDK.Reports.exe show up in the process list, but then the JIT
    > debugger pops up
    > i also noticed that it doesn't seem to impersonate the user. it launches
    > the exe as the ASPNET account
    >
    > thank you for your help,
    > abraham luna
    >
     
    Andrew Robinson, Feb 17, 2006
    #2
    1. Advertising

  3. you're right about the security issues.
    maybe i'll just create a windows service and hope i can call that from
    asp.net
    ty
     
    Abraham Andres Luna, Feb 20, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. presentt

    Event on executable launch

    presentt, Sep 14, 2005, in forum: Python
    Replies:
    0
    Views:
    271
    presentt
    Sep 14, 2005
  2. Replies:
    15
    Views:
    491
    Dave Thompson
    Aug 21, 2006
  3. pratap
    Replies:
    20
    Views:
    760
    Flash Gordon
    Mar 7, 2007
  4. stef mientki

    Howto Launch a windows application ?

    stef mientki, Oct 3, 2007, in forum: Python
    Replies:
    5
    Views:
    505
    Hyuga
    Oct 8, 2007
  5. Caroline

    Launch Executable

    Caroline, Sep 19, 2005, in forum: ASP General
    Replies:
    4
    Views:
    142
    Steven Cheng[MSFT]
    Sep 21, 2005
Loading...

Share This Page