?
Solved

Class_Initialize Type mismatch

Posted on 2003-03-30
2
Medium Priority
?
230 Views
Last Modified: 2008-03-17
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
Comment
Question by:kaspiton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 700 total points
ID: 8233429
Set objRequest = oObjectContext("Response")
Set objRequest = oObjectContext("Request")

Mistake in the first line?
0
 

Author Comment

by:kaspiton
ID: 8233436
Thank you, but i already find the error.!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question