Executing External Applications(.net)
Executing External Applications(.net)
i have made an exe using windows application. i want to call it through web
application(through aspx page). i m using System.Diagnostics.Process.Start to call the exe.
Process myProcess = new Process();
myProcess.StartInfo.FileName = @"c:\myexe.exe";
myProcess.StartInfo.Arguments = @"c:\rp.html";
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
myProcess.StartInfo.UseShellExecute = false;
myProcess.Start();
But each time it gives JIT debugging error mentioning that an exception
'system.unauthorisedaccessexception' has occured in myexe.exe.
although my exe and one more process vs7jit.exe get listed in windows task manager
processes when i call this exe and at the same time JIT debugging error comes.
But through asp page i am able to call that exe through shell command like this
Set objShell = Server.CreateObject("wscript.shell")
HtmlToPdfRtf = objShell.run("C:\class\myexe.exe" , false)
i have used a dll in making my exe but only exe comes in release folder and it works well
independently. my exe will do some work on server with the button hit by the client.please
advice how can i call this exe through aspx web page .
|