running an executable file in asp.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vishnu5
    New Member
    • Feb 2008
    • 1

    running an executable file in asp.net

    i want to run an executable file by clicking a button in a web form
    i wrote the code

    Dim myApp As New System.Diagnost ics.Process()
    myApp.StartInfo .FileName = "c:\FileToRun.e xe"
    myApp.Start()

    in button click event but nothing happens


    please help.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    If you are trying to run this exe on the server you will run into problems. IIS runs as a service, and as such has no access to the desktop (client). Any process (exe) you start will not be able to open a window, it will cause a permissions prob. Console apps can be run from an aspx page. Which version of framework are you running?

    Comment

    Working...