IIS 6 ASP Classic Response,request and session error 8002801d
Posted on 2012-03-15
I am on Windows Server 2003 for Small Business.
I receive the following error:
/Pqts/Validate.asp, line 7
Following are the VBScript:
<% Option Explicit
'on error resume next%>
Response.Buffer=true 'this is line 7
Response.CacheControl = "no-cache" 'this is line 8
Response.AddHeader "Pragma", "no-cache" 'line 9
Response.Expires = -1 'line 10
session.timeout=120 'line 11
Dim UserID, UserPassed, UserRole 'line 13
Dim Pwd 'line 14
UserID= trim(Request.Form("UID")) 'line 16
Response.Write err.number 'line 18
If I comment out line 7 line 8 throws the same error and each following line wil throw the error except the two line with the Dim statements until you get to Response.Write that will work.
I have reinstalled IIS6 and made sure that the 'ACTIVE SERVER PAGES' are allowed.
I have tried reregisterin the asp.dll.
There is a 'logon.asp' page that does not contain any vbscript and that works fine.
If I use the ON ERROR RESUME NEXT and response.write err.number --> -2147319779
but no other err values have information.
And the friendly error message has been turned off.