M S

M S

  • NA
  • 1
  • 0

Run .exe on remote computer

Apr 23 2009 7:18 AM
I have installed simple console application on remote server side. Application gives an information about percentage of free space on sytem partition. I would like to run such application from an application installed on my computer and collect output data. But, here is  a problem when I try to run application at remote side from another application on my computer. Part of code is:
            ProcessStartInfo proc = new ProcessStartInfo();
            proc.FileName = this._procpath;  // path to shared folder where application is placed
            proc.RedirectStandardInput = false;
            proc.RedirectStandardOutput = true;
            //proc.Arguments = "";
            proc.UseShellExecute = false;
            Process p = Process.Start(proc);
            string res = p.StandardOutput.ReadToEnd().ToString();

Generated error is:
That assembly does not allow partially trusted callers
The Action That Failed was: LinkDemand