D
DarkHorizons
Guest
I have apache ASP enabled on a domain and uploaded a file with some very simple asp code:
This is some pretty simple ASP code, however, it gives an Internal Server Error 500. Any idea what may be the problem? This is what the log file says:
[Fri Oct 13 19:38:59 2006] [error] [asp] [22726] [debug] Bareword found where operator expected at /home/httpd/vhosts/<domain>/httpdocs/newsite/test.asp line 8, near "1 then" <-->
[Fri Oct 13 19:38:59 2006] [error] [asp] [22726] [debug] !(Missing operator before then?) <-->
[Fri Oct 13 19:38:59 2006] [error] [asp] [22726] [error] error compiling test.asp: syntax error at /home/httpd/vhosts/<domain>/httpdocs/newsite/test.asp line 8, near "if 1" <--> (Might be a runaway multi-line '' string starting on line 1) <--> , /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 1462
[Fri Oct 13 19:40:15 2006] [error] [asp] [23935] [debug] Number found where operator expected at /home/httpd/vhosts/<domain>/httpdocs/newsite/test.asp line 9, near "If 1" <--> (Might be a runaway multi-line '' string starting on line 1) <-->
[Fri Oct 13 19:40:15 2006] [error] [asp] [23935] [debug] !(Do you need to predeclare If?) <-->
[Fri Oct 13 19:40:15 2006] [error] [asp] [23935] [debug] Bareword found where operator expected at /home/httpd/vhosts/<domain>/httpdocs/newsite/test.asp line 9, near "1 Then" <-->
[Fri Oct 13 19:40:15 2006] [error] [asp] [23935] [debug] !(Missing operator before Then?) <-->
[Fri Oct 13 19:40:15 2006] [error] [asp] [23935] [error] error compiling test.asp: syntax error at /home/httpd/vhosts/<domain>/httpdocs/newsite/test.asp line 9, near "If 1" <--> , /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 1462
Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<% If 1=1 Then Response.write "This is a test" %>
</body>
</html>
This is some pretty simple ASP code, however, it gives an Internal Server Error 500. Any idea what may be the problem? This is what the log file says:
[Fri Oct 13 19:38:59 2006] [error] [asp] [22726] [debug] Bareword found where operator expected at /home/httpd/vhosts/<domain>/httpdocs/newsite/test.asp line 8, near "1 then" <-->
[Fri Oct 13 19:38:59 2006] [error] [asp] [22726] [debug] !(Missing operator before then?) <-->
[Fri Oct 13 19:38:59 2006] [error] [asp] [22726] [error] error compiling test.asp: syntax error at /home/httpd/vhosts/<domain>/httpdocs/newsite/test.asp line 8, near "if 1" <--> (Might be a runaway multi-line '' string starting on line 1) <--> , /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 1462
[Fri Oct 13 19:40:15 2006] [error] [asp] [23935] [debug] Number found where operator expected at /home/httpd/vhosts/<domain>/httpdocs/newsite/test.asp line 9, near "If 1" <--> (Might be a runaway multi-line '' string starting on line 1) <-->
[Fri Oct 13 19:40:15 2006] [error] [asp] [23935] [debug] !(Do you need to predeclare If?) <-->
[Fri Oct 13 19:40:15 2006] [error] [asp] [23935] [debug] Bareword found where operator expected at /home/httpd/vhosts/<domain>/httpdocs/newsite/test.asp line 9, near "1 Then" <-->
[Fri Oct 13 19:40:15 2006] [error] [asp] [23935] [debug] !(Missing operator before Then?) <-->
[Fri Oct 13 19:40:15 2006] [error] [asp] [23935] [error] error compiling test.asp: syntax error at /home/httpd/vhosts/<domain>/httpdocs/newsite/test.asp line 9, near "If 1" <--> , /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 1462