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();

    Any examples of how to do this.


    Steve Ricketts, Aug 7, 2009
    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.

Share This Page