Book a Demo

Author Topic: Automatization on local user or doamin user accont  (Read 3714 times)

m2i7c9k

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Automatization on local user or doamin user accont
« on: August 30, 2018, 06:29:22 pm »
Hi Guys,

I have word 2016 add-in (VB2017) and it works on a local account (win10pro), but on the user with domain it shows error:

The exception thrown: 'System. Exception' in Microsoft.VisualBasic.dll
Cannot create an ActiveX component.


Imports EA

Module Module1
    Sub Main()
        Try
            Dim vRep As EA.Repository
            Dim vApp As EA.App = GetObject(, "EA.App")
            vRep = vApp.Repository
            Debug.Print(vRep.ConnectionString)
        Catch ex As Exception
            Debug.Print(ex.Message)
        End Try
    End Sub

So, it is a domain problem, or something different?

Thanx 4 all advice.

Mick

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automatization on local user or doamin user accont
« Reply #1 on: August 30, 2018, 06:55:16 pm »
Is EA running under the same account?

Geert

m2i7c9k

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Re: Automatization on local user or doamin user accont
« Reply #2 on: August 31, 2018, 03:32:12 am »
Technically I don't know. On my private notebook, my add-in works well.
But I have a local account, and in the company, I have a domain user account, and EA is installed from
active directory group.

I thought that is maybe a problem? So I reinstalled my EA from local HDD and hoped that replace some references?
No idea how it makes it words :/