Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

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.
0
kaspiton
Asked:
kaspiton
1 Solution
 
AlexFMCommented:
Set objRequest = oObjectContext("Response")
Set objRequest = oObjectContext("Request")

Mistake in the first line?
0
 
kaspitonAuthor Commented:
Thank you, but i already find the error.!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now