Error "Method '~' of object '~' failed" and "ActiveX Component can't create object"

Hi all,

I faced the issue at 1 or the user pc, her pc is Windows 10, 64 bits. When want to load the customization program, error will occurred in line sessMgr.CreateSession, it will prompted error  "Method '~' of object '~' failed" first, then only prompted error "ActiveX Component can't create object" but others pc will not have this issue. May I know anyone know how to solve this issue?

Public mSession As New AccpacCOMAPI.AccpacSession
Public sessMgr As New AccpacSessionMgr

Private Sub Form_Initialize()
     mSession.Init "", "CS", "CS0001", "63A"
     sessMgr.AppID = "CS"
     sessMgr.ProgramName = "CS0001"
     sessMgr.AppVersion = "63A"
     sessMgr.CreateSession "", 0, mSession
End Sub

Many thanks.

Parents Reply Children
No Data