Click here to Skip to main content
13,146,014 members (44,456 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am running exe file through process creation, it is working fine in source code, but not in IIS. How to call exe file in IIS ?
Posted 24-Feb-12 1:21am
ryanb31 24-Feb-12 7:43am
IIS is a host for web applications. So, you need to create an app that can be hosted in IIS. Please provide more details.
Philippe Mori 24-Feb-12 8:20am
Are you using your own server or an hosted solution. In the later case, for sure you cannot run an executable as it would be far to dangerous for ISP to allows such code to execute.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Its an IIS security thing. The web applicaion on IIS has to be configured to be able to run executables. If that's not possible, try it this way:

0) Make your web site write a file that indicates the process needs to be run.

1) Write a Windows ervice that runs on the web server that watches for the file that your web site creates. When it sees that the file is created, have it run the executable.

The only caveat to this approach is that the executable run by the web service must be a console application with no GUI or user interaction.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 24 Feb 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100