Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: m2i7c9k on August 30, 2018, 06:29:22 pm

Title: Automatization on local user or doamin user accont
Post by: m2i7c9k 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
Title: Re: Automatization on local user or doamin user accont
Post by: Geert Bellekens on August 30, 2018, 06:55:16 pm
Is EA running under the same account?

Geert
Title: Re: Automatization on local user or doamin user accont
Post by: m2i7c9k 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 :/