Link to home
Start Free TrialLog in
Avatar of kaspiton
kaspiton

asked on

Class_Initialize Type mismatch

Hello!

I trying create com in VB and in when the class creating i need set ASP object,
Private Sub Class_Initialize()
    screendebug = False
   
    Set oObjectContext = GetObjectContext()
    Set objRequest = oObjectContext("Response")
    Set objRequest = oObjectContext("Request")
    Set objServer = oObjectContext("Server")
    Set objSession = oObjectContext("Session")
    Set objApplication = oObjectContext("Application")
End Sub

but when page is loaded it write error - "Class_Initialize Type mismatch"

on:
set obj = server.CreateObject("SITE.page")

Any idea, what the problem?

In references i was choose all needed components.
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kaspiton
kaspiton

ASKER

Thank you, but i already find the error.!