Good afternoon, I am new developing on web asp.net, I am running one batch file from my website that I developed with c# Visual Studio. I am using the following code:
private void EjecutarAORA(string strNombreArchivoBatch, int intTiempoDeEspera)
{
string strArgumentos = string.Format("\"{0}\" ", strNombreArchivoBatch);
System.Diagnostics.Process objProcess = new System.Diagnostics.Process();
objProcess.StartInfo.FileName = "Advisor.exe"; //Path.GetFullPath(bat);
objProcess.StartInfo.Arguments = strArgumentos;
//set the rest of the process settings
objProcess.StartInfo.Verb = "runas";
objProcess.StartInfo.UseShellExecute = false;
objProcess.StartInfo.CreateNoWindow = true;
objProcess.Start();
objProcess.WaitForExit(intTiempoDeEspera);
if (objProcess.HasExited == false)
{
objProcess.Kill();
}
}
This code is working when I ran the code with the Visual Studio debugging, but once I publish the project and I install it on My IIS7 I got an Http request TimeOut. Also I modified the timeout, and I got the same error. Do you know why is working on Debuggin Visual Studio and it do not works on IIS?
Thank you so much