P2Pprogrammer 2 programmer

Home > Programmer2Programmer.NET Forum> ASP.NET, MVC and Web Development >> How to run exe file in Asp.Net web application...

Welcome Guest My Thread | Search | Active Topics | Members | Log In | Register

NOTE : Log In required to post Replies for this discussion.
How to run exe file in Asp.Net web application
prabha Posted: Friday 10, October 2008 01:34:11 PM     
   
Hello Sir, How r u?
I have a problem, please suggest me what should i do.
 i want to run a exe of vb.net  in asp.net web application.
 i write the following code..

Dim sf As New ProcessStartInfo    
   sf.FileName="c:\ICICI_pl_mis_import.exe"

sf.UseShellExecute = False

     Dim pr As New Process
     pr.StartInfo = sf
     pr.Start()

  if i run this code then it will ok. but when i host the web a
pplication or deploye. then this code does not give any output 
or message or error. I also user the Server.MapPath("\") but th
is is not working.
i also set sf.UseShellExecute = true, but there is no effect.
Please Help me....


Back to Top ^  
 Coder Posted: Friday 02, January 2009 08:36:32 AM
  
   
Check the path of the executable file.
it should be in server. and the folder
should have permission to execute the exe.

--Coder
Back to Top ^ 


Home > Programmer2Programmer.NET Forum >ASP.NET, MVC and Web Development >> How to run exe file in Asp.Net web application...