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("Applicatio n")
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.
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("Applicatio
End Sub
but when page is loaded it write error - "Class_Initialize Type mismatch"
on:
set obj = server.CreateObject("SITE.
Any idea, what the problem?
In references i was choose all needed components.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER