Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dll from ASP error '800a005b'

Status
Not open for further replies.

hinchdog

Programmer
Feb 14, 2001
380
US

Do you know anything about this error. I get it when i try to use my own dll from an ASP page.
****************************************************
'800a005b'

Object variable or With block variable not set

****************************************************
This dll works fine from the VB 6.0 IDE. I even registered this .dll with MTS and have the following code in my dll:

*****************************************************
Implements ObjectControl

Private objContext As ObjectContext

Private Sub ObjectControl_Activate()
Set objContext = GetObjectContext()
End Sub

Private Function ObjectControl_CanBePooled() As Boolean
ObjectControl_CanBePooled = False
End Function

Private Sub ObjectControl_DeActivate()
Set objContext = Nothing
End Sub

**********************************************
It still doesn't work. BTW, i'm on Windows 98 using PWS. I hope someone has some suggestions for me cause i'm at my wits end! Thanks!

-Hinchdog
 
Hi hinchdog,

I've been having the same problems and have been trying the same fixes. Finally, what fixed my error message is that i was running the vb project (run/start) before i launch my asp and vb pointed to the line with problem.
I was creating an instance of a class that i created without the Set
e.g
Public Sub Configure(ByVal utility As IUtility)
'm_utility = utility was like this when getting 800a005b
Set m_utility = utility 'this fixed it
End Sub

So, if you don't want to run the vb in the background to have a accurate ASP debug (it's helping me a lot), just check for any instanciation without the Set.

Clems
 
thanks, i finally figured out the problem to but it took forever. i'll try your method next time this happens.

-hinchdog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top