I routinely put the following code at the end of an asp page.
cnn is the connection object
But today I got this strange error in a new page.
The page worked fine after I disabled the line of code "on error resume next".
By the way, that page works fine on the IIS7 that runs on my laptop. The production server is IIS 6.0. This information may be irrelevant because so many other pages on the IIS6 server have the same code.
Any idea?
cnn is the connection object
Code:
<%
on error resume next
cnn.close
set cnn=nothing
%>
But today I got this strange error in a new page.
Code:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/projects_test.asp, line 279
on error resume next cnn.close set cnn=nothing
----------------------^
The page worked fine after I disabled the line of code "on error resume next".
By the way, that page works fine on the IIS7 that runs on my laptop. The production server is IIS 6.0. This information may be irrelevant because so many other pages on the IIS6 server have the same code.
Any idea?