Application Extension Mapping IIS

Posted on 2007-08-03
Last Modified: 2010-05-18
Windows 2003 Server running IIS for our intranet.  We have two executable files that we need to create links to from a web page for the end user to be able to execute.  We've tried many methods already and have not been successful.  The only time that it's worked is if we pointed the executable to another server on the LAN.  It will not run on the local IIS server.  We read somewhere that there had to be application extension mapping for executables to run.  We've had no success doing so.  Can someone please assist us with the application extension mapping or another proper way to get these executables to launch from a web page?

Question by:Jess Tolson
    LVL 9

    Accepted Solution

    I don't know if I understand correctly but to run executables in IIS6, you have to go to
    IIS Manager > Web Service extension and Allow 'All Unknown CGI Extensions'
    Or you can 'Add a new web service extension' .exe, browse to your executables and set the status to allowed.
    LVL 18

    Assisted Solution

    by:Gary Davis
    You need to use System.Diagnostics.Process(). An example, to run RoboCopy to copy files when a user decides to deploy them to various servers. The user on a web page clicks a link or button which posts back to the web server. The web server then runs an executable on that server.

    An example follows. This came from

    Public Sub ShellandWait(ByVal ProcessPath As String)
            Dim objProcess As System.Diagnostics.Process
                objProcess = New System.Diagnostics.Process()
                objProcess.StartInfo.FileName = ProcessPath
                objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal

                'Wait until the process passes back an exit code

                'Free resources associated with this process
                MessageBox.Show("Could not start process " & ProcessPath, "Error")
            End Try
        End Sub

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
    What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now