How to execute EXE file on Windows 2008 using ASP.NET

Binolfpiodo

New Member
How to execute EXE file on Windows 2008 using ASP.NET and IIS7? I have tried to run code below but it seems do not work. The code is executed without any error but I do not see Notepad in Processes list. Everything works fine if I use ASP.NET developer server but not with IIS7.\[code\]string enginePath = "notepad";var password = new System.Security.SecureString();foreach (char character in ConfigurationManager.AppSettings["Credentials"]) password.AppendChar(character);var p = new Process { StartInfo = { FileName = enginePath, UseShellExecute = false, } };p.StartInfo.UserName = "Administrator";p.StartInfo.Password = password;p.Start();\[/code\]
 
Top