//  home   //  advanced search   //  news   //  categories   //  sql build chart   //  downloads   //  statistics
 ASP FAQ 
Home
ASP FAQ Tutorials

   8000XXXX Errors
   ASP.NET 2.0
   Classic ASP 1.0
      COM / ActiveX Components
      Forms
      General Topics
      Date/Time Routines
      Email Scripts & Info
      Files/Directories & FSO
   Databases
   General Concepts
   Search Engine Optimization (SEO)

Contact Us
Site Map

Search

Web
aspfaq.com
tutorials.aspfaq.com
classicasp.aspfaq.com

ASP FAQ Tutorials :: Classic ASP 1.0 :: COM / ActiveX Components :: Why do I get 800A005B errors?


Why do I get 800A005B errors?

<object> error '800a005b'  
Object variable or With block variable not set  
 
or 
 
Microsoft VBScript runtime error '800a005b'  
Object variable not set
 
Make sure to use the SET keyword when creating objects (or calling methods that return objects). According to KB #243772, you should also register your component in MTS as opposed to running it standalone, though I've never been forced to do that (it's always been a different problem). 
 
If you have code such as the following: 
 
Dim objConn As ADODB.Connection 
objConn.open "<connectionString>"
 
Make sure you actually instantiate an object using the NEW keyword, e.g.: 
 
Dim objConn As ADODB.Connection 
Set objConn = New ADODB.Connection 
objConn.open "<connectionString>"
 
If you have complex looping or if/else structures in your component, make sure your nesting is complete and you don't have any dangling structs that weren't picked up by the compiler. 
 
Do not attempt to use ObjectContext functionality within Class_Initialize() / Class_Terminate (see KB #250309). 

Related Articles

Can I code ISAPI filters / extensions with Visual Basic?
DLL: How do I avoid 'Permission Denied' when re-compiling?
How do I detect browsers without components?
How do I determine if a COM object is installed?
How do I determine if a VBScript-based object exists?
How do I generate PDF files from ASP?
How do I generate RTF documents from ASP?
How do I handle MD5 from ASP?
How do I pass server-side values to a client-side ActiveX control?
Should I close my objects and/or set them to nothing?
Should I store objects in session/application scope?
Should I use CreateObject or Server.CreateObject?
When does ASP release COM objects?
Where can I get a shopping cart for my web site?
Where can I get an updated version of browscap.ini?
Why do I get 'Server.CreateObject Access Error'?
Why do I get 8000401A errors?
Why do I get 80040111 errors?
Why do I get 80040112 / 8007045A errors?
Why do I get 800401F3 / 800A01AD errors?
Why do I get 80040460 errors?
Why do I get 80040514 errors?
Why do I get 8007000E errors?
Why do I get 8007007E / 8007007F errors?
Why do I get 80072EE2 errors?
Why do I get 80072EE5 errors?
Why do I get 800A0030 errors?
Why do I get 800A9C68 errors?
Why do I get 800C0007 errors?
Why does Browscap give me 'unknown' or tell me IE is Netscape?

 

 


Created: 8/19/2002 | Last Updated: 3/24/2005 | broken links | helpful | not helpful | statistics
© Copyright 2006, UBR, Inc. All Rights Reserved. (262)

 

Copyright 1999-2006, All rights reserved.
Finding content
Finding content.  An error has occured...