Executing a program from an .ashx

Discussion in 'Microsoft C# .NET' started by Steve Ricketts, Aug 7, 2009.

  1. I'm trying to start a program on the web server with an .ashx using the
    System.Diagnostics.Process.Start(startInfo) function. It works when I'm
    debugging in VS2008 but doesn't work when running in a production mode.
    Obviously, I have a permissions issue since it's running under the
    restricted permissions of the web user but I don't know how to allow it.
    I've tried setting the user name, password, and domain of the
    ProcessStartInfo object with the administrator's logon information (just to
    get the highest permissions for test) but it tells me I have a bad user name
    or password. I am concerned that I'm not setting the password correctly
    because I'm using:

    SecureString password = new SecureString();
    password.AppendChar('p');
    password.AppendChar('a');
    password.AppendChar('s');
    password.AppendChar('s');
    etc.

    Any examples of how to do this.

    Thanks,

    sr
     
    Steve Ricketts, Aug 7, 2009
    #1
    1. Advertisements

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. Marco Martin

    executing program by clicking on an associated file (ext)

    Marco Martin, Jan 30, 2004, in forum: Microsoft C# .NET
    Replies:
    2
    Views:
    145
    Marco Martin
    Jan 30, 2004
  2. Eric Paul

    Executing a program while displaying a model window

    Eric Paul, Mar 8, 2004, in forum: Microsoft C# .NET
    Replies:
    5
    Views:
    251
    Eric Paul
    Mar 12, 2004
  3. batham

    #region in ASHX Handler

    batham, Oct 9, 2006, in forum: Microsoft C# .NET
    Replies:
    0
    Views:
    230
    batham
    Oct 9, 2006
  4. Gif Color Indexing in ashx

    , Sep 4, 2008, in forum: Microsoft C# .NET
    Replies:
    5
    Views:
    170
    Pavel Minaev
    Sep 4, 2008
  5. ThatsIT.net.au

    ashx files

    ThatsIT.net.au, Jan 3, 2009, in forum: Microsoft C# .NET
    Replies:
    4
    Views:
    516
    Michel Posseth [MCP]
    Jan 4, 2009
Loading...

Share This Page