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
  • 0 in reply to @KDS

    Keep in mind that turning UAC off is not a great solution since you're potentially opening up the PC to threats.  If UAC was the issue then you'll want to work with IT to adjust the rights that your application needs so that it can work along side how Sage was configured.