Classic asp page is throwing "internal server 500 error"
<p><strong>Connection file</strong></p>

<pre><code>&lt;%
    Set Conn = Server.CreateObject("ADODB.Connection")
    Conn.Open "abc","ID","Password"
    conn.commandtimeout=120

    Set RS = Server.CreateObject("ADODB.RecordSet")
    rs.activeConnection = Conn

%&gt;
</code></pre>

<p><strong>Classic ASP file</strong></p>

<pre><code>&lt;%response.buffer = true%&gt;
&lt;%Response.Expires = 0%&gt;
&lt;!-- #include file="functions.asp" --&gt;

&lt;% Response.Write session("RequestID")%&gt;
&lt;%if session("ValidLogon") &lt;&gt; "true" then
    if request("FromEmail") = "True" then
        SetSessVar()
    else%&gt;
        &lt;%response.redirect "Default.asp"
    end if
end if%&gt;

&lt;html&gt;
&lt;body&gt;

&lt;%rs.Source = "SELECT * from tblRequests WHERE RequestID = " &amp; request("requestID")

rs.Open

session("RequestID") = rs("requestid")

if rs("RequestType") = "O" then

    response.clear

    If request("Tag") = "Change" then
        response.redirect "abc.asp#change"
    else
        response.redirect "abc.asp?From=" &amp; request("From")
    end if

else

    response.clear

    If request("Tag") = "Change" then
        response.redirect "editinternal.asp#change"
    else
        response.redirect "editinternal.asp?From=" &amp; request("From")
    end if

end if
rs.close%&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I have checked the classic asp page and it looks like there is an error in syntax inside "Body" tag. I don't know anything about it.</p>

<p>It is giving internal server error 500.</p>