Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


IIS 6 ASP Classic Response,request and session error 8002801d

Posted on 2012-03-15
Medium Priority
Last Modified: 2012-03-25
I am on Windows Server 2003 for Small Business.

I receive the following error:

error '8002801d'

/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.
Question by:iron001
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 5
  • 4
LVL 25

Expert Comment

ID: 37728987
Have a look at:

there is an issue with some component somewhere in your code.   It could very well be a corrupted install of windows.

Do you have access to another server?  If so, can you test the same code on that one?
LVL 29

Expert Comment

ID: 37729070
You will need to reinstall iis

Author Comment

ID: 37729351
Thanks for the replies!

sammySeltzer - I have already reinstalled IIS6.0 several times.

kevp75 - Have already looked at both the web sites.

There are on Server.CreateObject any where on the page.

The Windows Server 2003 has been running for years and I have created several websites.
Something may have happened to the OS but I have no idea what it would have been.

I only have the one server.

What I have done is created a new folder under wwwroot created the page validate.asp and put the following lines of code in it:

<% Option Explicit

'on error resume next

Response.Buffer=true         'this is line 4

Response.CacheControl = "no-cache"  'this is line5

Response.AddHeader "Pragma", "no-cache"  'line 6

Response.Expires = -1            'line 7

session.timeout=120          'line 8

Dim UserID, UserPassed, UserRole     'line 10

Dim Pwd                                            'line 11

UserID= trim(Request.Form("UID"))     'line 13

Response.Write err.number                 'line 15

I have made sure there is no global.asa file in wwwroot.

Then in IE I type in http://localhost/test/validate.asp and

I still get the following error message on the screen:

error '8002801d'

/Pqts/Validate.asp, line 4

The only lines that do not throw the error are the lines with the Dim statements and the Response.Write.

And the Response.Write Err.number is  -2147319779
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 29

Expert Comment

ID: 37729387
Please post ALL the code and let's take a look

Author Comment

ID: 37729413
I have posted ALL the code that is on the new wwwroot/test/validate.asp. I did a copy paste.
LVL 29

Expert Comment

ID: 37729454
I don't know what you are trying to accomplish with this but I don't see anything wrong with it.

<% Option Explicit

'on error resume next

Response.Buffer=true         'this is line 4

Response.CacheControl = "no-cache"  'this is line5

Response.AddHeader "Pragma", "no-cache"  'line 6

Response.Expires = -1            'line 7

session.timeout=120          'line 8

Dim UserID, UserPassed, UserRole     'line 10

Dim Pwd                                            'line 11

UserID= trim(Request.Form("UID"))     'line 13

Response.Write err.number                 'line 15

If err.number > 0 then
 response.write "We have a problem here"
 response.write "<br><br> I do not see any issues here"
end if

Open in new window

What OS are you running this on?

It even works on my iis5.1

Author Comment

ID: 37729613
This was code that was at the top of a page. Is was running just fine until the other day and then I started receiving this error message. To narrow down where the error message was coming from I copied this code to a new asp page in a new folder and ran it. So the error message is also being thrown from this new code.

This is happening on all of my websites.

I am running on Windows Server 2003 for Small Business.

I think that either a setting in IIS 6.0 has changed or a file has been corrupted but I really have no idea.
LVL 29

Expert Comment

ID: 37729681
If that's the only code you are using to do whatever, then consider first uninstalling iis and then reinstalling.

I ran same code just now, just to confirm there is nothing wrong with it and it ran just fine.

So, no part of that code is causing any problems for you.

Author Comment

ID: 37729965
I as mentioned earlier I have already uninstalled and re-installed IIS several times.
LVL 25

Assisted Solution

kevp75 earned 500 total points
ID: 37730414
When you :uninstall: IIS frmot he control panel, it does not uninstall everything.

Can you try IIS7.5 Express?

The issue is NOT in your code.  In fact, there is NOTHING wrong with your code at all.   The issue is IIS itself.

Merely uninstalling does not remove all the registry entries, and configuration files.   So I suggest you use something like the software in the top link, or something like Advanced System Care to clean everything out for you...  otherwise you will have to search through your registry and clean up the left behind entries (thank you M$)
LVL 29

Expert Comment

ID: 37730826
Just out of curiousity, did you enable (allow) asp?

Author Comment

ID: 37732617
sammySeltzer - Unless enabling/allowing asp is not the same as:

"I have reinstalled IIS6 and made sure that the 'ACTIVE SERVER PAGES' are allowed."

Then I have not done that. Please let me know where/how to enable asp.
LVL 25

Expert Comment

ID: 37732667
IIS6 comes asp enabled out of the box.

Besides that, you already stated some of the code does indeed work.

IIS7 usually does not, unless you configure it when you install the role on the server.

Author Comment

ID: 37737767

I was unable to figure out how to work Perfect Uninstaller but I did use Revo uninstaller to uninstall IIS 6.0 and its folders then used a registry cleaner to remove any leftover objects.

Then I re-installed IIS 6.0 to no avail.

Then I downloaded and installed IIS 7.5 Express and the website seems to be working. For me this is just a temporary work around.
LVL 25

Expert Comment

ID: 37738043
Everything I am seeing leads to some .dll file that is not registered on your server.  This could very well have hapenned during a windows update (gee thanks M$).

The best I can do (short of telling you to format and reinstall windows), is to make sure all the .dll's are registered.

vbscript.dll, msvcrt.dll, scrrun.dll

There could also be a permissions issue going on with the windows registry.  See if IUSR_ has access to HKCR\TypeLib

Is  the .asp extension enabled and server-side objects allowed?    Just to be sure man, double check IIS, (right click the computer in IIS, check Web Service Extensions)

Accepted Solution

iron001 earned 0 total points
ID: 37742530
I have tried everything that has been suggested at least a couple of times. I am down to the conclusion that to resolve this issue I am going to have to re-install everything, something I do not have time to do right now.

Since I have a work around and the fact that in a couple of months I will be getting a new server and a new version of Windows, partly thanks to this issue. I am going to leave things as they are and hope nothing else happens.

I would have preferred to find a fix to this issue but the work around may get me through until my upgrades. Therefore I will give kevp75 have the points for giving me that work around.

Thanks kevp75!

Author Closing Comment

ID: 37762370
Solution was just a work around.

Featured Post

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question