Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting "%1 is not a valid Win32 application." on IIS browser

Status
Not open for further replies.

bcicsuci

MIS
Jun 28, 2002
9
US
The following error message appears when I access my cgi file via the browser. I am noting the ff steps I have done and the existing system conditions.

"%1 is not a valid Win32 application. "

1. I created html file that calls cgi script via this line of code ->

<FORM METHOD=post ACTION=&quot;/scripts/webexample.cgi&quot;>

2. Perl has been installed together with the module (Mail::SendMail) needed on machine that has IIS.

3. I have directed the admin to set up IIS to allow the execution of the cgi script that has been written in perl. The instructions were from
Sample of my cgi script:

#!c:\Perl\libuse CGI;
use Mail::Sendmail;

unshift @{$Mail::Sendmail::mailcfg{'smtp'}} , 'smtpout.na.nykline.com';

$q = new CGI;
#$name = $q->param('name');
#$address = $q->param('address');
$address = &quot;bcicsuci\@yahoo.com&quot;;

$user_location = $q->param('user_location');
$Question_1 = $q->param('Question_1');

print &quot;Content-type:text/html\n\n&quot;;
print <<END_OF_MESSAGE;
<html>
<body>
<title>Thank You Page</title>
<h1>Thank you for filling out my form</h1>
Thank you for filling out my form.
</body>
</html>
END_OF_MESSAGE


4. The cgi script runs properly via the command line.

5. I had a friend of mine use my code and everything went fine for the html file and the cgi script.

Anyone have an idea about what could be wrong with the server set up on the machine hosting my files?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top