PC Review


Reply
Thread Tools Rate Thread

Executing a program from an .ashx

 
 
Steve Ricketts
Guest
Posts: n/a
 
      7th Aug 2009
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Run as..." is not executing program Hermann Warnke Windows XP Help 3 11th Feb 2005 07:58 PM
"Run as..." is not executing program Hermann Warnke Windows XP Security 3 11th Feb 2005 07:58 PM
"File Download" prompt when executing a program from a UNC with a "." Jeremy Windows XP Networking 1 8th Jan 2004 06:04 AM
autoplay on dvd drive executing wrong program aaron Windows XP Hardware 1 11th Jul 2003 07:04 AM
autoplay is executing wrong program aaron Windows XP General 2 11th Jul 2003 06:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:47 PM.