title: Launch a program from ASP.NET C#
body: <p>I have a program (I created) and I want to start it on the server when the webpage loads. </p>
  
  <p>Here is the code I have </p>
  
  <pre><code>public partial class _Default : System.Web.UI.Page
  {
      Process app = new Process();
      protected void Page_Load(object sender, EventArgs e)
      {
          app.StartInfo.FileName = @"D:/Path to /My/Program to be run.exe";
          app.Start();
      }
  }
  </code></pre>
  
  <p>Right now the application is 'run' however it crashes instantly. 
  If I just run the application (by double clicking the exe) it runs and everything is fine. </p>
  
  <p>anyone see if i'm missing something here?</p>