I am having problems making a simple cgi program work. The page waits for 20 seconds, then only displays Output from CGI:
XP (SP3), IIS 5.1
<p>Output from cgi: <!--#exec cgi="/cgi-bin/T1.exe" --> </p>
Here is T1.exe, a compiled VS 2005 console app:
(I apologize for dumping source, but this one is easier to list than explain)
I think I am close, if I add a mapping configuration entry to map .exe to aspnet_isapi.dll, I do get output that kinda looks like the binary program.
Can anybody see what I am doing wrong?
Also, please tell me if I am going about this all wrong. The purpose of the cgi is to select and insert images into html and simple asp pages (I only use asp to get the include feature). The program will be a complicated visual basic .net app, but the output will either be dumping the selected file or a links to it.
I used to write cgi code on other platforms. Hit counters (remember those things) were a common cgi app. You pass the page name as a parm and your program processed it (add a counter in a db rec) and optionally returned a string representation of a number. I also have written many aspx apps. I want to insert an image into pages that are maintained by an html editor.