Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 1881

Start an external program from asp.net on iis 10.x

$
0
0

Hi, 

I have the following problem:

I try to start an external program from asp.net on the iis 10.x.x.x . But I get every time the same exception by starting the process: 

Here is my code for creating the Process:

Process p = new Process();                      // create new process
            p.StartInfo.FileName = "C:\PathToProgram\myProgram.exe"
            p.StartInfo.UserName = "User";
            p.StartInfo.Domain = "Domain";
            p.StartInfo.Password = StringToSecureString( pwd ); //  function for converting from String to UnsecureString
            p.StartInfo.UseShellExecute = false;                // do not execute "in" shell
            p.StartInfo.CreateNoWindow=false;                   // the program have to start in window mode

 

"System.ComponentModel.Win32Exception (0x80004005): The requested operation requires elevation in System.Diagnostics.Process...."

I have added the "read/write/execute - permissions" of IUSR to the external program, without success.

Does anyone have expirience with it?


Viewing all articles
Browse latest Browse all 1881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>