Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IIS5.1
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 2:21am
Comments
ryanb31 at 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 at 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
good
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.
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 190
1 Jochen Arndt 165
2 PIEBALDconsult 150
3 BillWoodruff 148
4 DamithSL 140
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 24 Feb 2012
Copyright © CodeProject, 1999-2014
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