error '800a01a8' Object required

Hello Experts ,

My Application worked fine until it was with IIS after moving my application to IIS 7 (64 Bit ) things turns upside down

It reports me with an  error '800a01a8'   Object required

here is my code

Private Function ReadSessionID()

On Error GoTo ErrHandler:

    Const METHOD_NAME As String = "ReadSessionID"
   
    ReadSessionID = myObjectContext.Item(REQUEST_OBJECT).Cookies(mySessionPersistence.SessionID)
   
    Exit Function
   
ErrHandler:

    Err.Raise Err.Number, METHOD_NAME & ":" & Err.Source, Err.Description

End Function

Private Sub Class_Initialize()

On Error GoTo ErrHandler:

    Const METHOD_NAME As String = "Class_Initialize"
     
    Set mySessionPersistence = New SessionPersistence
   
    'Set myObjectContext = GetObjectContext()
    mySessionID = ReadSessionID()
    myDSNString = GetConnectionDSN()
    myTimeOut = GetSessionTimeOut()
    myIsNewSession = False
ErrHandler:

    Err.Raise Err.Number, METHOD_NAME & ":" & Err.Source, Err.Description

End Sub


Upon Execution of above code throws me
Class_Initialize:ReadSessionID:YcSession error '800a01a8'

Object required !

Whats wrong with this session objects ??

LVL 11
princeatapiAsked:
Who is Participating?
 
princeatapiConnect With a Mentor Author Commented:
I found my Own Solution By Enabling "Allow IIS Instinct Policy"
0
 
Springy555Commented:
Try changing the application pool to enable 32bit applications.

Right click the application pool your website is using, select advances settings.

Do an IISRESET after changing this.
0
 
princeatapiAuthor Commented:
Springy555:

Ive already done this  , still no use
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.