I have a program (I created) and I want to start it on the server when the webpage loads.
Here is the code I have
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();
}
}
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.
anyone see if i'm missing something here?