programmer1111
IS-IT--Management
when i invoke the my COM dll(VB) i am getting the error Object variable or With block variable not set.Follwing libraries have been included..
MTS library
COM+ service library
Microsoft Active Server Page Objeect Libray
plus ordinay refrences
The Actual code is
On Error GoTo ErrHandler
Dim ErrorMsgs As ErrObject
Dim objMtsCtx As ObjectContext
Dim oSession1 As Session
Set objMtsCtx = GetObjectContext()
If objMtsCtx Is Nothing Then
OutputDebugString vbCrLf & "failed............ "
End If
OutputDebugString vbCrLf & "not failed............ "
oSession1("New"
= "Praveen"
Exit Function
ErrHandler:
OutputDebugString (ErrorMsgs.Description)
can any one tell me what could be the problem....treat this as very urgert.pls reply me ASAP
regards
Praveen
MTS library
COM+ service library
Microsoft Active Server Page Objeect Libray
plus ordinay refrences
The Actual code is
On Error GoTo ErrHandler
Dim ErrorMsgs As ErrObject
Dim objMtsCtx As ObjectContext
Dim oSession1 As Session
Set objMtsCtx = GetObjectContext()
If objMtsCtx Is Nothing Then
OutputDebugString vbCrLf & "failed............ "
End If
OutputDebugString vbCrLf & "not failed............ "
oSession1("New"
Exit Function
ErrHandler:
OutputDebugString (ErrorMsgs.Description)
can any one tell me what could be the problem....treat this as very urgert.pls reply me ASAP
regards
Praveen